Viewing 15 posts - 361 through 375 (of 1,473 total)
Glad you got it working ezlikesundaymorning-573799, but I'll have to follow up with a few comments as well. I fully understand your point of view that you are coming...
December 1, 2009 at 8:01 am
Hah, you're not kidding. It was like a 7 hour dry spell across all the forums I watch. I figured it had to be actually broken, that's way...
December 1, 2009 at 7:20 am
Welcome back. Just as a refresher, you might want to take a look over the article on posting sample data in my signature for any future posts.
If you're going...
November 30, 2009 at 8:06 pm
You can probably hack something together with sp_helptext(which gives you the code of a stored procedure) or find a script online to do it.
November 30, 2009 at 7:55 pm
You can use SSMS to generate scripts for all the stored procedures and then execute it on as many servers as necessary. That's not doing it through straight T-SQL,...
November 30, 2009 at 5:55 pm
You're still using ODBC drivers coming the other way though aren't you? Via system DSN's? It's definitely not an exact match the article and you're probably right, it's...
November 30, 2009 at 10:54 am
Hrm... while your problem does not exactly fit this, it's a close enough parallel that the work around proposed for this might be worth trying.
http://support.microsoft.com/kb/936223
Is it an option to attempt...
November 30, 2009 at 10:17 am
I personally nest all update/delete statements to real data in transactions as well, just to be extra cautious.
something like:
BEGIN TRAN
--Your Delete Statement
ROLLBACK TRAN
--COMMIT TRAN
November 30, 2009 at 8:58 am
Is that the only error or is it followed by an error 107 as well?
November 30, 2009 at 8:56 am
Joe's code could also be made into one statement like this:
update @rank_test
set sales_man=
CASE WHEN (id+3)%4=0 THEN 1
...
November 30, 2009 at 8:50 am
Unfortunately, I'll have to guess at what 'and so on...' means, but this should point you in the right direction:
; WITH
t1 AS (SELECT 1 N UNION ALL SELECT 1...
November 30, 2009 at 8:36 am
You should be able to use the same method, but the logic will get slightly more complex. Post back any specific questions if you have difficulty adapting it.
November 29, 2009 at 10:56 am
sherifffruitfly (11/27/2009)
Besides the technical...
November 27, 2009 at 10:29 pm
Very nice, and very close. A slight alteration will give you what you need.
; WITH
t1 AS (SELECT 1 N UNION ALL SELECT 1 N),
t2 AS (SELECT 1...
November 27, 2009 at 10:20 pm
Viewing 15 posts - 361 through 375 (of 1,473 total)