Viewing 15 posts - 391 through 405 (of 430 total)
I think the only problem is the sql syntax. I was able to recreate it fine.
insert into table (Scenario)
Select @Scenario as Scenario
INSERT INTO Scenario
SELECT @Scenario as Scenario
June 23, 2010 at 9:01 am
If you dont want to switch to using a date counter, does this work?
Set @StartingMon = @StartingMon + CASE
WHEN RIGHT(CONVERT(CHAR(6),@StartingMon),2) =...
June 14, 2010 at 8:14 am
Ninja's_RGR'us (5/9/2010)
Gail has a great article on this but I didn't save the link... plz anyone post it if you know what I'm talking about.
is this it?
http://sqlinthewild.co.za/index.php/2007/11/27/parameter-sniffing/
May 10, 2010 at 7:51 am
If it completes without error, but nothing happens, perhaps its not finding the remote file. Does it complete instantly? or does it appear to download a file, but then the...
April 29, 2010 at 8:52 am
Can you include the join to the other tables in the proc?
April 23, 2010 at 11:52 am
Can you use TRY CATCH?
BEGIN TRY
ALTER TABLE tblproducts ADD isDelete bit
END TRY
BEGIN CATCH
END CATCH
April 23, 2010 at 7:59 am
Can you run the code directly on the remote server? I seem to remember getting cryptic errors from a linked server caused by syntax errors. Sometimes the data would change,...
April 15, 2010 at 9:28 am
What OS is on the box? If its XP then it has to be XP Pro so that you can run IIS, but I think it should tell you that.
March 23, 2010 at 8:32 am
Variation on the above.
DECLARE @T
TABLE (
row_id INTEGER PRIMARY KEY,
...
March 12, 2010 at 7:53 am
Did you ever figure this out? I might have recently done something similar, but its been over a month since this post.
October 20, 2009 at 1:15 pm
I may have misread the subquery join.
Can you find if it is ever possible for the subquery to return multiple rows? even though it doesn't for the example?
October 20, 2009 at 1:03 pm
Does this return anything?
SELECT T3.Val1
FROMTable3 AS T3
INNERJOIN Table4 AS T4 ON T4.SomeID=T3.SomeID
WHERET3.Val2 = 1
GROUPBY T3.Val1
HAVING COUNT(*) > 1
and does it work if you change your subquery...
October 20, 2009 at 12:21 pm
Viewing 15 posts - 391 through 405 (of 430 total)