Viewing 15 posts - 11,221 through 11,235 (of 15,376 total)
Matt Miller (#4) (7/24/2012)
Sean Lange (7/24/2012)
http://www.sqlservercentral.com/Forums/Topic1325508-391-1.aspx
There is nothing magical about try/catch blocks in t-sql. They work just like the same...
July 24, 2012 at 1:55 pm
Welsh Corgi (7/24/2012)
Sean Lange (7/24/2012)
http://www.sqlservercentral.com/Forums/Topic1325508-391-1.aspx
There is nothing magical about try/catch blocks in t-sql. They work just like the same constructs...
July 24, 2012 at 1:33 pm
I tossed together a quick flowchart to demonstrate what this is doing. Maybe it will help. Look down below for the attachment.
July 24, 2012 at 1:07 pm
Smash125 (7/24/2012)
DECLARE @Table TABLE
(
FirstName NVARCHAR(255),
MiddleName NVARCHAR(255),
LastName NVARCHAR(255),
ContactID INT
)
INSERT INTO @Table
SELECT FirstName,MiddleName,LastName,ContactID FROM Person.Contact
DECLARE @FirstName NVARCHAR(255)
SET @FirstName='kim'
IF EXISTS(SELECT * FROM...
July 24, 2012 at 12:51 pm
AND your update statement has no where clause. I guess this is OK if you want everyone to be named 'Sam'. 😛
July 24, 2012 at 12:45 pm
This thread has a good example of using OUTPUT with MERGE.
http://www.sqlservercentral.com/Forums/Topic1325508-391-1.aspx
There is nothing magical about try/catch blocks in t-sql. They work just like the same constructs in every programming language.
July 24, 2012 at 12:44 pm
D-SQL (7/24/2012)
Yes agreed. But this is coming from our VP and this is what he wants done.
I understand you there and I am trying to help you protect yourself. Have...
July 24, 2012 at 11:04 am
D-SQL (7/24/2012)
Is there an easy way to...
July 24, 2012 at 10:59 am
lokeshvij (7/24/2012)
[His Post :-)]Another example to clarify:
SELECT *FROM table_name
WHERE DateOfIncidentDte >= '01-01-2012'
AND DateOfIncidentDte < '01-01-2013'
Hope, you agree with me now - Sean 🙂
I absolutely agree with you...I just misread...
July 24, 2012 at 10:28 am
Lynn Pettis (7/24/2012)
Sean Lange (7/24/2012)
lokeshvij (7/24/2012)
July 24, 2012 at 10:25 am
jeezontorst (7/24/2012)
Well basically i use it because I've been learning sql for 6 months only, and this is what i have been shown by other...
July 24, 2012 at 10:22 am
lokeshvij (7/24/2012)
July 24, 2012 at 10:17 am
Hi and welcome to SSC. It seems you have gotten some good suggestions at finding a solution. You may be wondering why nobody responded with some sql for you. That...
July 24, 2012 at 10:04 am
Ajdba (7/24/2012)
ThanksAlso, how can I create an index on a computed column such as " incident_year"
Thanks
http://msdn.microsoft.com/en-us/library/ms189292.aspx
Don't forget what I said in your other thread about SARGability of your query....
July 24, 2012 at 8:41 am
Ajdba (7/24/2012)
Yes, I need to ; because I am modifying the existing procedure where it written in dynamic sql
Just because it was written that way originally does not mean it...
July 24, 2012 at 8:32 am
Viewing 15 posts - 11,221 through 11,235 (of 15,376 total)