Viewing 15 posts - 11,761 through 11,775 (of 14,953 total)
Your question looks and sounds like something from a test.
If it's a legit question, then what you're looking for is the concept of "correlated subqueries". The book "SQL Server...
January 6, 2009 at 11:56 am
The solution I'd go with would be to assign a standard identity column to the orders table, and then use a view with the Row_Number function in it for the...
January 6, 2009 at 11:50 am
I'm going to add a vote for "buy something that does this for you". RedGate's Compare is good. I use ApexSQL Diff, because it compares both structure and...
January 6, 2009 at 11:33 am
If you search the web (Google, Live, Yahoo, whatever), for "infopath sql server", you'll find articles like the one at:
http://msdn.microsoft.com/en-us/library/aa159896.aspx
That one is about how to connect InfoPath to SQL Server,...
January 6, 2009 at 11:20 am
DBMail is built into SQL 2005 and 2008. If you are using a version before that, it's a bit more complex.
Assuming you're using 2005/08, you'll need to enable the...
January 6, 2009 at 11:15 am
Do you have a question about the code?
January 6, 2009 at 11:12 am
I don't know a way to get exactly what you're looking for in one solution.
I'd log the update (as you're doing), and run a trace. From time-stamps, SPIDs, etc.,...
January 6, 2009 at 9:55 am
In that case, I'm pretty sure you're going to be stuck with making sure all necessary variables are declared NChar/NVarchar, that you have N before any string-literals, etc.
January 6, 2009 at 9:52 am
The only reason I sometimes use table variables instead of temp tables is speed. Yeah, it's cutting milliseconds off the processing time, but sometimes that matters. Since table...
January 6, 2009 at 9:50 am
Timothy (1/5/2009)
GSquared (1/5/2009)
January 6, 2009 at 9:36 am
The discussion on Joe's article was definitely interesting.
Like most who chimed in, I prefer using DateAdd over Floor/Ceiling, because of consistency. Unlike most who chimed in, I don't tie...
January 6, 2009 at 9:18 am
Is there a reason to do this in a trigger, as opposed to working from a trace? A trace will give you exactly what you're looking for, the proc...
January 5, 2009 at 3:01 pm
You could try setting the default collation to an extended character set. Not sure if that would work, but it might be worth testing on a dev server.
January 5, 2009 at 2:39 pm
My general rule of thumb is only use table variables for less than 100 rows of data. Even then, things like transaction management and the ability to use DDL...
January 5, 2009 at 1:50 pm
If it's actually tempdb, then you need to keep in mind that tempdb is essentially wiped out whenever you restart the SQL services (such as if you reboot the server...
January 5, 2009 at 1:45 pm
Viewing 15 posts - 11,761 through 11,775 (of 14,953 total)