Viewing 15 posts - 3,271 through 3,285 (of 5,588 total)
Check out the OUTPUT clause of the INSERT statement (this is what it's there for!).
(well, maybe other things to, but definitely this.)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 4:35 pm
Assuming that in the second two lines, that column 2 is supposed to start with a double-quote, then this works for me:
if object_id('tempdb..#Test2') IS NOT NULL DROP TABLE #Test2;
CREATE TABLE...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 1:07 pm
Jeff,
Is all of your character data going to start and end with a double-quote? (Your sample isn't doing this...)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 1:00 pm
It looks like you could benefit from checking out this excellent blog: http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/[/url]
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 12:14 pm
CirquedeSQLeil (9/10/2010)
WayneS (9/10/2010)
CirquedeSQLeil (9/10/2010)
woohoo down to 23.2 posts per day to reach 20k by the 2nd birthday :-D:-D:-D
And as long as that keeps going down, we'll make it!
Now, is anyone...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 11:28 am
CirquedeSQLeil (9/10/2010)
woohoo down to 23.2 posts per day to reach 20k by the 2nd birthday :-D:-D:-D
And as long as that keeps going down, we'll make it!
Now, is anyone tracking Gail...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 10:58 am
Brandie Tarvin (9/10/2010)
Chris Morris-439714 (9/10/2010)
Brandie, what's @=Pbbt?
It's like a raspberry, sticking one's tongue out, making the phbbt noise, and probably drenching everyone in the vicinity in the process.
You're the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 10:03 am
Brandie Tarvin (9/10/2010)
Alvin Ramard (9/10/2010)
Brandie Tarvin (9/10/2010)
WayneS (9/10/2010)
Brandie Tarvin (9/9/2010)
...One of the other boards I frequent ....A traitor!:w00t:
Non-SQL Board, silly. @=Pbbt
NoSQL? 😛
Careful, you. I have the DBCC Timewarp remote...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 10:02 am
Steve Jones - Editor (9/10/2010)
Check it later. It's fake, but pretty funny. Only on FB from what I can see.
For those of us that don't do FB... I'd love to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 9:57 am
How's this?
declare @PatientID varchar(50);
set @PatientID = '1865004';
WITH BP1 AS
( -- strip the time from the date
SELECT BPM_TimeStmp,
BPM,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 9:25 am
vivek,
First of all, I want to congratulate you on the excellent job you did on posting the table/data. You'd be surprised what we have to go to in order to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 9:07 am
Please read about SQL Injection before you implement this. It really would be best (IMO) to call stored procedures with the desired parameters.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 8:13 am
This is covered in the SQL Server 2008 Upgrade Technical Reference Guide. It's called a side-by-side upgrade.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 8:04 am
Hey Threadizens - any ideas on why OPENDATASOURCE isn't working on a prod server?
Thanks!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 7:58 am
Steve Jones - Editor (9/10/2010)
Bazinga!
Wonderful
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 10, 2010 at 7:56 am
Viewing 15 posts - 3,271 through 3,285 (of 5,588 total)