Viewing 15 posts - 48,916 through 48,930 (of 59,099 total)
TheSQLGuru (8/6/2008)
Jeff Moden (8/6/2008)
No problem... PK can be nonclustered.
Yep. And then we have this situation:
Clustered index: order_id (assume int - 4 bytes), order_date (assume datetime - 8 bytes),...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 5:59 pm
Idea for article on forum etiquette... ummm... wait a minute... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:38 am
toprprasad (8/6/2008)
I need a script which can generate insert statements for all the records in a table.
for eg: if a table abc has 2 records, then on executing this...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:34 am
No problem... PK can be nonclustered.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:33 am
drari (8/6/2008)
he gives a totalrows = 7
Maybe there is a way to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 8:30 am
Yep... And I looked at that file... it's just like I said... the header record and the trailer record both have a different number of columns than the body of...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:38 am
Um... ok... a bit out of the ordinary...
Click on my name above my avatar to the left and send me an email with the file attached.
Folks, if I find something,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:11 am
From the description of things, it sounds like you have some code somewhere that makes tomorrow's database today... maybe, in more than one spot. I'm thinking that all you...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 7:03 am
Only one thing left to do, then. Attach the create script for the target table, the BCP format file, and, if there's no private information in it, the file...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 6, 2008 at 6:44 am
There are a huge number of rules for the partitioning column and the partitioned table in Books Online... my recommendation would be to make a checklist of what needs to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 11:22 pm
The WHILE condition doesn't make sense for the code you posted... it will run forever because something will always exist in the table.
Also, you're trying to insert into the same...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 11:12 pm
Thanks for the feedback, Jim.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:18 pm
The header must have exactly the same delimiters as the 2nd row which must match all the other rows, or BCP will give you that error and the 2nd row...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:13 pm
Amit Chaudhary (8/5/2008)
I think I am asking this question in the right forum.
THe configuration on my server is TCPIP Enabled, Named Pipes Enabled. The order of SQL Native CLient Protocols...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:10 pm
How many rows are you talking about copying? I'm thinking that you don't actually need the WHILE loop because of the explicit transaction you've declared. Use set based...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 5, 2008 at 10:04 pm
Viewing 15 posts - 48,916 through 48,930 (of 59,099 total)