Viewing 15 posts - 3,151 through 3,165 (of 3,619 total)
I have a utility stored procedure but I tend to use DBCC DBREINDEX rather than the defrag.
The procedure also updates the statistics for all tables.
If you exec usp_UpdateStatistics then it...
July 7, 2004 at 2:34 am
If your client software has to run a SELECT on your view then it will be slower than if your client simply executes the procedure.
I don't know if it is...
July 7, 2004 at 2:16 am
Are they exactly the same stored procedures that you run in QA and via jobs?
If they are that rules out old query plans and a need for recompiling your procs.
My guess...
July 6, 2004 at 5:43 am
The CONVERT statement should be
SET DateOfBirth =CONVERT(SmallDateTime,DOB,1)
This is because you are converting text to a date. The final argument identifies the string as being in mm/dd/yy format.
To display it in...
July 6, 2004 at 2:01 am
Char is fixed length and will always take up 6 characters.
VarChar is variable length and will take a maximum of 6 characters.
CREATE TABLE #CharVarChar(CharField CHAR(6),VarCharField VARCHAR(6))
INSERT #CharVarChar (CharField,VarCharField) VALUES('A','A')
--Now try
SELECT...
July 6, 2004 at 1:54 am
Personally, I would do this sort of calculation at the client front end rather than the database back end but return the records in reverse result order.
I played around with...
July 1, 2004 at 1:08 pm
exec master.dbo.xp_cmdshell 'c:\specialticket.xml'
should be
exec master.dbo.xp_cmdshell 'type c:\specialticket.xml'
What you are doing is executing a DOS type command but instead of the output being echoed to the screen it is...
June 30, 2004 at 2:34 am
Andy Warren reviewed a specific performance tuning book on this site. http://www.sqlservercentral.com/columnists/awarren/reviewofsqlserver2000performancetuning.asp
Brian Kelley wrote an E-Book called "Start to finish guide to SQL Server Performance Monitoring" that I would...
June 30, 2004 at 1:39 am
I played around with it for personal interest sake.
CREATE TABLE #tmp( XMLContainer TEXT)
INSERT #tmp
exec master.dbo.xp_cmdshell 'type myfile.xml'
Once you have done this then you can use the built in SQL XML...
June 30, 2004 at 1:32 am
BOL is talking rubbish.
It should be CONVERT(varbinary(256),password)
June 29, 2004 at 3:53 am
I am trying something similar but my servers are in different domains so I cannot use the DTS Transfer logins routine.
BOL says that I can do the following
June 29, 2004 at 3:44 am
It is moving it on the same server.
I'm asking more for curiosity sake than anything.
As standard practice I use the articles you wrote on moving databases to put the...
June 29, 2004 at 1:34 am
That 8000 characters includes white space and some white space characters can break your SQL.
The only problems I have had are when unicode text (which takes twice as much space) gets...
June 28, 2004 at 12:52 pm
The signature is allegedly the marriage proposal that the actor, Robert Mitchum, made to an actress whose name escapes me. I think she accepted.
June 28, 2004 at 2:06 am
Yes,
I have a stored procedure that has a @choice argument. Depending on the value of that argument I execute various stored procedures.
The other thing that is possible is to create...
June 28, 2004 at 1:44 am
Viewing 15 posts - 3,151 through 3,165 (of 3,619 total)