all groups > sql server new users > june 2005
Filter by week: 1 2 3 4 5
Audit SQL
Posted by Brett at 6/30/2005 3:47:02 PM
I am looking for a pre-packaged solution for auditing record level changes to
SQL tables. I know this can be set up through custom triggers but my
organization does not have the resources to develop this. We are looking to
buy something that will work out of box.
Does anyone have any recomm... more >>
BLOB's in row
Posted by L. R. Hurtado at 6/30/2005 9:37:19 AM
Hello there:
I have a question I hope somebody can help me.
In a SQL db I must store in row PDF files which can grow without any basis.
I know due to bibliography that you are allowed to store up till 2GB binary
data. Due to that fact there will not be any problem, because the PDF files
... more >>
Get primary key
Posted by lh at 6/30/2005 12:00:00 AM
How does one get the name of a column that is the PK on a table. I can get
as far as
select * from sysobjects where xtype = 'PK' and parent_obj = ?
but how do I link to a column name?
TIA
LH
... more >>
best way to move files?
Posted by jwflutterby at 6/29/2005 1:26:02 PM
I am new to SQL server but I need to figure out how to monitor the contents
of a folder then move files from this folder to another folder when a new
file shows up. I do have experience with VB script and VB.Net and have
created both a script and an exe that do what I need. The trouble is that... more >>
Insert Records using MS Access as front end
Posted by Gal Zilberman at 6/29/2005 12:05:33 PM
Hi I have a simple Insert Query that I used while the DB was in Access, I've
migrated the data in the SQL server and I get an error message saying that
Access can't Append because there is a Key Violation, the only key is the ID
which I'm not append onto as it's Autonumber is Access.
Thanks... more >>
SQL Msg: 18456
Posted by Paul at 6/29/2005 1:33:04 AM
Hei!
I am getting this SQL error when i tried to use SQL Query Analyzer,
Unable to connect to server AxpServer1
Server: Msg 18456, level 16, state 1
Microsoft ODBC SQL Server Driver SQL Server Login failed for user 'sa'
On the EM SQL Server Properties (Configure) on the Security tab
Authent... more >>
TOP 10 WITH TIES....question
Posted by Boris at 6/28/2005 12:01:15 PM
Hi!
I'm having doubts about WITH TIES command
I have this query:
USE pubs
SELECT TOP 10 sales.qty, sales.title_id, stores.stor_name
FROM sales
JOIN stores
ON sales.stor_id = stores.stor_id
ORDER BY sales.title_id DESC
This is plain simple...it gives me 10 rows. Everuthing fine.
... more >>
how to empty a field?
Posted by r at 6/28/2005 10:06:09 AM
I have a table that contains a smalldatetime field. One of the records had
a date entered into this field, and now I need to remove the date from the
field. Whenever I try to just "delete" it (delete key) I get a message:
The value you entered is not consistent with the data type or length of... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to identify hidden character in string
Posted by Rod Gilchrist at 6/28/2005 9:30:58 AM
I am trying to do an update where I first cast as string as a INT and get
back the following message:
Server: Msg 245, Level 16, State 1, Line 1
Syntax error converting the nvarchar value '725
' to a column of data type int.
When I past the offending column contents into Word it shows two ... more >>
New Hire - Taking over Databases
Posted by sqllady at 6/28/2005 8:21:05 AM
I am taking over a DBA position where the previous DBA left the firm and I do
not know the structure and/or the tables, views etc. What is the best way (
and the fastest)for me to find this out? thanks in advance... more >>
Insert into
Posted by Tango at 6/27/2005 11:51:01 PM
Hi
can i please have some assistance around performing a sql query that inserts
data based on a date range.
for example my initial query is
INSERT INTO tbl_master
([date], unavailableemployeeid, reasonid,
unavailablehours)
VALUES (, 1234, 12, 7)
but i want to ... more >>
SQL Server connection to a website - newbie question
Posted by Mike Webb at 6/27/2005 2:05:52 PM
We're a small non-profit org. (NPO) running Small Business Server 2003
(SBS2K3) and will finally (!) get broadband in the very near future. I want
to re-do our website with a ePhilanthropy focus. To do that, I'll need
forms for users to log in, enter and have the site save their info, let ... more >>
backing up and copying SQL dbase tables and structure?
Posted by Nathon Jones at 6/27/2005 1:58:26 PM
Hi,
I have a shared SQL database which drives a web site that I have created.
This is hosted on a particular domain.
I am transferring the site, and I want to move the SQL database data into a
new SQL database on our new server.
What is the best way to do this? I have, in the past, saved... more >>
SQL Agent Account
Posted by Gabe Matteson at 6/27/2005 12:11:52 PM
A problem occurred while attempting to logon as the Windows user
'SQLAgentCmdExec': The parameter is incorrect. The step failed.
There are a few jobs that developers create and they run under there
accounts, I do not want to give them sysadmin access, but they need
permissions to CmdExec. I e... more >>
Drop all constraints and relationships?
Posted by et at 6/27/2005 10:06:18 AM
Is there a way to drop all constraints on a table without knowing it's name?
A constraint was created with a '-', and when attempting to drop it:
ALTER TABLE [dbo].[tblClients] DROP CONSTRAINT [FK_tblClients-Address]
GO
I get an error saying Incorrect syntax near '-'.
Second problem: when... more >>
Import SQL et Login NT...
Posted by MAF at 6/27/2005 12:00:00 AM
Bonjour à tous,
Quelqu'un peut-il m'aider sur le problème suivant ? j'ai bien chercher
sur le net mais n'ai pas trouvé de réponses...
<CONTEXTE>
------------
Je doit importer une base cliente sur ma plateforme de dev
Ma plateforme est sous Windows 2003 et se trouve dans le groupe de
tra... more >>
SQL Server Tables, Reports, Forms imported from Access
Posted by cpetta at 6/25/2005 9:56:01 AM
Could you briefly explain how to set up ODBC to create links so I can easily
transfer my MS Access Tables and related forms, roports, and queries to SQL
Server or point me to a good article or web site? I am just starting to learn
SQL Server and need to import my existing tables, forms, rep... more >>
SQL Agent Proxy Account
Posted by Gabe Matteson at 6/24/2005 2:10:34 PM
A problem occurred while attempting to logon as the Windows user
'SQLAgentCmdExec': The parameter is incorrect. The step failed.
There are a few jobs that developers create and they run under there
accounts, I do not want to give them sysadmin access, but they need
permissions to CmdExec. ... more >>
Compare Access and SQL Server queries?
Posted by Bill at 6/24/2005 1:31:58 PM
I need to compare records in several Access tables with records in
corresponding SQL Server 2000 tables by primary key value. Is is it
possible to join an Access (Jet not MSDE) table with a SQL Server table?
If not, what is the eaiest way to import an Access database into a SQL
Server database... more >>
Login times SQL server
Posted by JoseCM at 6/24/2005 7:22:01 AM
Hi everyone
I was wondering if is there a way that I can get how many times users have
been connected to my database in sql server 2000 group by on NT user, also I
want to make a stored procedure that stores every week or month how many
times users connected to sql server, to monitoring the... more >>
RE:Steps of Troubleshoot SQL 2000 Server
Posted by Davis at 6/24/2005 4:19:04 AM
Hello Group
Can someone provide me with steps of troubleshooting a slow SQL 2000 Database
Immediate response would be appreciated
Davis... more >>
MSDE, ASP.NET, Visual Studio .NET, and connectionstrings
Posted by Nathan Sokalski at 6/23/2005 6:45:34 PM
I have Visual Studio .NET and SQL Server Desktop Engine on my computer. I
have created an empty database using Visual Studio .NET's Server Explorer.
However, I am having trouble connecting to the database using ASP.NET. I
think the problem is somewhere in my connection string, but because I do no... more >>
Simple sql select
Posted by Aleks at 6/23/2005 2:01:30 PM
I have an sql to select 'customers', something like
Select * from clients
inner join cases on clients.id = cases.clientid
The client may have multiple cases and if I run the query like that I may
get the same client multiple times, how can I only display the client once
when there are multi... more >>
simple query select
Posted by Aleks at 6/23/2005 11:38:07 AM
I have an sql to select 'customers', something like
Select * from clients
inner join cases on clients.id = cases.clientid
The client may have multiple cases and if I run the query like that I may
get the same client multiple times, how can I only display the client once
when there are mul... more >>
where is there chinese microsoft newsgroups?
Posted by PENGFEI at 6/23/2005 12:00:00 AM
what is the chinese microsoft newsgroups NNTP name ?
pengfei
thanks.
pengfei
... more >>
Login failed for user 'sa'
Posted by John at 6/22/2005 7:16:01 PM
I just finished running rebuildm.exe to change the collation name. All
seemed to go OK, and I re_attached the databases associated with my main
application. After doing so, when I try to start the app, I get the
following error:
Login failed for user 'sa'
Then I get Focus<<server_login... more >>
Creating an empty database
Posted by Nathan Sokalski at 6/22/2005 4:28:00 PM
I want to create an empty SQL Server database with nothing in it so that I
can add tablesand other stuff to it using sql code. How do I do this?
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
... more >>
Reporting Services connecting to Oracle
Posted by isabelle at 6/21/2005 4:59:02 PM
Hi,
I got a request to setup so that Reporting Services can connect to an Oracle
database. When they select a data source, I see ODBC but I also see an
option that's called Oracle. What do I need to setup/install on my SQL
Server so the developers can create a report that connects to an O... more >>
Group Question (I think)
Posted by Dvanderm at 6/21/2005 4:14:19 PM
strSQL = "SELECT SA, ProblemType, Count(ProblemType) as ProbType FROM
Problems WHERE RptDate >= " & sIn(bDate) & " AND RptDate <= " & sIn(eDate) &
" GROUP BY SA, ProblemType ORDER BY SA"
Results Look like this - no space in between different SAs.
Steve Monitor 1
Steve Printer 1
... more >>
Comparing two databases
Posted by Gabe Matteson at 6/21/2005 12:21:51 PM
Are there any tools that allow you to compare two sql server databases to
find out what is different between them (the database structure, including
tables, relationships etc)? Thanks,
- Gabe
... more >>
help with stored proc
Posted by Deon Joubert at 6/21/2005 12:20:54 PM
Can anyone tell me why this stored proc is not updating the REMAINING field
when it runs the first time?
ALTER PROCEDURE SP_CHANGECAPACITY
@COCODE INTEGER
AS
DECLARE @SECTION CHAR(10) /**/
DECLARE @DATEE SMALLDATETIME /**/
DECLARE @OPR INTEGER /**/
DECLARE @EFF FLOAT /**/
DECLARE TEM... more >>
Security Migration
Posted by Help Needed at 6/21/2005 1:19:03 AM
I have 2 servers in my company which is server A and server B. Server A will
end of life at the end of this year and I wish migrate the whole database to
Server B.
I wish to know how to migrate Login setting to Server B
the Login is in Microsoft SQL Servers > SQL Server Group > Server B > ... more >>
SQL 2005 newsgrousp...
Posted by Amit Bansal at 6/21/2005 12:00:00 AM
Hi,
Is there any separate news group for SQL Server 2005?
... more >>
(SQLExpress) Import .sql file howto ?
Posted by MAF at 6/20/2005 12:00:00 AM
Hi every body,
I have recently find out we can train ourself on SQL Server thanks to
the Express Edition.
So I'm trying to import a db structure (.sql file) and then fill it with
some data given in another file (.txt)
But I can't find any relevant documentation (a reference guide for
ex... more >>
Print Queries
Posted by Hossein Shamloo at 6/19/2005 2:17:29 PM
Hi
how can I print queries in color mode
... more >>
Locks/Process ID
Posted by Gabe Matteson at 6/17/2005 10:56:27 AM
I have been trying to track down a database problem in which for some reason
when somebody enters in some data into the database it becauses unavailable
for the application. I looked under Locks/Proccess ID and found that one of
the proccess is 'blocking' can somebody elaborate as to what sor... more >>
Running a batch file from SQL Server
Posted by Much Moishe at 6/16/2005 3:01:10 PM
I have created a small batch file that runs a DOS command to copy a file.
When I run it from the DOS prompt, it works fine. When I try to run it as a
scheduled job, it fails (even though it is reported as successful). When I
run it from DTS, it works.
Can anyone shed some light on what may ... more >>
Connecting to an msde instance over the internet
Posted by Jav at 6/16/2005 2:44:01 PM
I have access to the Server (Win2003 SBS) through Remote Desktop Connection.
I need to change the Permissions of a DataBase Role in the msde instance on
that server. I can't seem to find a way to connect to that instance. Is it
even possible through a Remote Desktop Connection?
Thanks for ... more >>
How to link tables
Posted by bob at zachys at 6/16/2005 2:37:28 PM
How do I query one table In database A from Database B on the same server. ... more >>
Linking tables
Posted by bob at zachys at 6/16/2005 2:14:07 PM
How would I go about linking a table in one database to anouther database on
the same server? I need to qry related data from one table to anouther table
in different databases. I know that I can import the data, but I was hoping
that there is a better way.... more >>
showcontig
Posted by erdem at 6/16/2005 12:23:29 PM
hi everone
i have question about DBCC SHOWCONTIG results of Table
we have table with huge amount of data in it. When i run ''dbcc
showcontig('<TableName>') with fast, ALL_INDEXES,TABLERESULTS ''
i saw that most of indexes have logical fragmentation over 80%
then i run DBCC dbreindex and... more >>
Transactions not taking place
Posted by Gabe Matteson at 6/15/2005 1:16:42 PM
Is there anyway that I can view the status of a transaction? To see if the
data even reached the database. Apparently some data that users are inputing
into this application, lets say they input 5 rows, sometimes they don't show
up in the database, so I am trying to find out if it even made it... more >>
Varchar
Posted by HenryC at 6/15/2005 11:53:20 AM
If a given text field is always 3 characters or less, is there a reason why
varchar(3) is better/more efficient etc., than varchar(4). Or does it really
make any difference? I was told when designing the table it really doesn't
matter. Is this true? If varchar(3) is the same as varchar(10), wh... more >>
Looking for the last table updated
Posted by Gary Rynearson at 6/15/2005 10:15:53 AM
Is their a way to query database metadata to find the last tabe / view
updated?
Gary
... more >>
Using SQL Server to store files
Posted by John Owens at 6/14/2005 4:03:14 PM
I want to store documents in SQL Server (using it as a file repository) so
it can be accessed via a WebForm in .NET.
Is this possible and if so is there any references or documentation about to
do this? BTW - The .NET stuff I can handle.
Thanks.
... more >>
Insert Date Value
Posted by syrac at 6/14/2005 11:48:55 AM
On my ASP page, with a SQL backend, I have the following code to insert a
date value into a table, but it is not working correctly.
sql = "UPDATE Problems SET FupDate = '" & updFuDate & "' WHERE TicketNumber
= " & tn & ""
The value updFuDate is currently 06/15/2005. The command works, howev... more >>
Searching for Duplicate records.
Posted by bob at zachys at 6/14/2005 11:39:04 AM
Is there a better way to search for duplicate records. Currently Im
accomplishing this by using two views.
Veiw1 looks like this
SELECT BoxId, COUNT(BoxId) AS Expr1
FROM dbo.tblInvCount
GROUP BY BoxId
HAVING (COUNT(BoxId) > 1)
View2 looks like this
SELECT ... more >>
databse from SQL2000 to MSDE
Posted by np at 6/13/2005 12:00:00 AM
Hi,
I need to move a database from SQL2000 to MSDE.
I've googled for it and figured out I should use DTS to do so, however I
can't seem to find the procedure on the MSDE side to "restore" the data
base.
any help would be kindly appriciated :)... more >>
Limiting data to certain years
Posted by et at 6/12/2005 2:44:37 PM
Is there a way to limit a column to a set of years, including the current
year, whatever that may be?
for instance, a column can only contain years 1950 to currentyear, without
me having to change the currentyear every year?
Would I do this through a rule/user defined type? If So, can you... more >>
Advice needed
Posted by S W at 6/11/2005 9:45:26 PM
Hi,
What is the best practice for virus checking and backup of a W2003 server
hosting SQL2000?
Virus checker is CA eTrust, backup is Veritas 9.1 (without the SQL agent)
I occasionally have problems with a SQL app "hanging" for a couple of
minutes which I think could be due to realtime v... more >>
|