Viewing 15 posts - 47,701 through 47,715 (of 49,571 total)
DECLARE @TblName VARCHAR(50)
SET @TblName = 'MyTable' -- can be a parameter also
IF (SELECT OBJECT_ID(@TblName,'u')) IS NOT NULL
PRINT 'Table Exists'
ELSE
PRINT 'Table Not Exists'
January 14, 2008 at 11:39 pm
muthukrishnan.e (1/14/2008)
hi,i dont want to skip ranks .... i want it like 1, 2, 2, 4, 5, 5, 7......
Ok. I said dense_rank based on the rank values you...
January 14, 2008 at 4:50 am
You can see all the logins on the server using the system view sys.server_principals. It's the 2005 replacement for syslogins.
SELECT * FROM sys.server_principals WHERE type IN ('u', 'S')
sysusers on SQL...
January 14, 2008 at 1:09 am
There seems to be a bad link in the article. The link under "Network Solutions snatching domain names" instead links to an article about online polls.
January 14, 2008 at 12:57 am
Look up the DENSE_Rank funcion in books online. It's a feature new in sQL 2005 and does exactly what you want.
January 14, 2008 at 12:12 am
Strange.
Can you try and connect from management studio with that login (without the control server privilidge) and see if you can connect. If not, see exactly what error is given.
January 13, 2008 at 11:57 pm
Alan G (1/13/2008)
Is this because the stats facility after the TRUNCATE still thinks there's 2.5m rows in...
January 13, 2008 at 12:07 pm
No sims. Case studies.
Long business case then set of questions based on that business case.
January 13, 2008 at 6:42 am
Congrats
441 is a nasty exam. I struggled through it. Make sure you know the work very, very well.
January 13, 2008 at 5:31 am
The exact allocation of marks is a secret. No one knows what the percentage is between sims and questions or between the questions themselves. I know (because there's a mention...
January 13, 2008 at 5:31 am
I would recommend that you do a stats update after the truncate, as truncate doesn't affect the stats, or the rowmodctr.
If you have auto update stats on, then stats are...
January 13, 2008 at 5:27 am
Do the procs do any updates, inserts or deletes?
January 12, 2008 at 11:54 am
You could try Paul Randal's blog: http://www.sqlskills.com/blogs/paul/ Might well be something there.
The impression I've got is that 2008 is a very small change, compared to 6.5-7 or 2000-2005
January 11, 2008 at 11:27 am
Do you rebuild the index, or reorg it?
January 11, 2008 at 11:25 am
Viewing 15 posts - 47,701 through 47,715 (of 49,571 total)