Viewing 15 posts - 41,956 through 41,970 (of 49,562 total)
SELECT OBJECTPROPERTY(Object_ID('TableName'),'TableHasPrimaryKey')
Or, if you want to check all the tables.
SELECT name, OBJECTPROPERTY(Object_ID,'TableHasPrimaryKey') FROM sys.tables
It's hard to recommend a script to auto-generate primary keys, because the question is, what does the...
January 6, 2009 at 10:07 am
Grant Fritchey (1/6/2009)
January 6, 2009 at 9:13 am
Greg Edwards (1/6/2009)
January 6, 2009 at 8:59 am
Grant Fritchey (1/6/2009)
I must be old, D&D used lots (and lots and lots) of six-sided dice. Now, Traveller, there were the decimal dice at work.
Which edition was that? I know...
January 6, 2009 at 8:55 am
Please post table definitions and sample data. Read this to see the best way to post this to get quick responses.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 6, 2009 at 8:50 am
mark (1/6/2009)
January 6, 2009 at 7:39 am
What compatibility mode is your database in?
January 6, 2009 at 7:27 am
Can you get the full message?
Go to the SQL job, open the job step that's failing. On the 'Advanced' page you can enter a file name for the full output...
January 6, 2009 at 7:26 am
Chris Morris (1/6/2009)
GilaMonster (1/6/2009)
I recommend a 20-sided dice.Six is sufficient...http://en.wikipedia.org/wiki/The_Dice_Man
Maybe for you. 😉 I play D&D. The 20-sided dice is the most important one.
I have 4, 6, 8, 10 and...
January 6, 2009 at 7:15 am
Is the database in full recovery?
Do you have regular transaction logs?
Can you do a final log backup before you restore the backup?
January 6, 2009 at 7:14 am
shiwani2002sg (1/5/2009)
Well i want relation to be generated on the attribute 'A' of both the tables. but in both table A does not include any keys. and its stated...
January 6, 2009 at 7:08 am
Grant Fritchey (1/6/2009)
URGENT!How do you pick indexes... Oh lordy
I recommend a 20-sided dice.
January 6, 2009 at 6:54 am
tony.harris (1/6/2009)
- i.e. having the Database Snapshot delegate to the mirror database for Views, Procedures and Functions?
That's the only way you can do it. Database snapshots are read-only and...
January 6, 2009 at 6:50 am
Can you post the execution plan please. Save as a .sqlplan file, zip that and attach it to your post.
January 6, 2009 at 6:34 am
Grant Fritchey (1/6/2009)
Keep your indexes as small as you can.
But no smaller than necessary. If the index needs to be four columns wide to be useful, making it only...
January 6, 2009 at 6:34 am
Viewing 15 posts - 41,956 through 41,970 (of 49,562 total)