Viewing 15 posts - 10,786 through 10,800 (of 18,923 total)
Insert into dbo.TableName (col1, col2, col10) values (@par1, @par2, @Par10).
Make sure to validate that non-nullable columns get feeded a value. Then all other params can be set to null.
December 4, 2006 at 8:04 am
Why are you not storing this value in a datetime field? You wouldn't face this, and a few hundreds other problems like this one!!
December 4, 2006 at 7:53 am
This should be a good reading for you :
http://www.sommarskog.se/dynamic_sql.html
December 4, 2006 at 7:51 am
How come you don't know the columns list at run time???
One way to debug this is to use the print statement :
Print @sql
Then tweak that code untill the print...
December 4, 2006 at 7:50 am
This is the best of all 5 answers posted. Does it answer your question or do you still need help?
December 4, 2006 at 7:48 am
Cross-posted thread. Best answer is on this page :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=145&messageid=248311
Consider this thread closed.
December 4, 2006 at 7:47 am
Cross-posted thread. Best answer is on this page :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=145&messageid=248311
Consider this thread closed.
December 4, 2006 at 7:47 am
Cross-posted thread. Best answer is on this page :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=145&messageid=248311
Consider this thread closed.
December 4, 2006 at 7:46 am
Change the field back to int, make sure they are still indexed (if they were before). And never let the client again decide of the DB design!
December 4, 2006 at 7:43 am
Please do not cross-post, we monitor all boards, finish this discussion here :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=149&messageid=327358
Please consider this thread closed.
December 4, 2006 at 7:41 am
Please do not cross-post, we monitor all boards, finish this discussion here :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=149&messageid=327358
Please consider this thread closed.
December 4, 2006 at 7:41 am
Full question has been posted here :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=149&messageid=327358
Please consider this thread closed.
December 4, 2006 at 7:40 am
Full question has been posted here :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=149&messageid=327358
Please consider this thread closed.
December 4, 2006 at 7:40 am
Check out the system tables, those are used all the time in the status columns.
Imagine a single column refferencing a lookup table (ok easy), but where that single column can...
December 4, 2006 at 6:50 am
What is forbiding you of using a set based solution and update all rows... or all 8 batches of rows in a single transaction ?
December 4, 2006 at 6:45 am
Viewing 15 posts - 10,786 through 10,800 (of 18,923 total)