Viewing 15 posts - 17,086 through 17,100 (of 26,489 total)
Again, if you would please post table defs (CREATE TABLE statements), sample data (series of INSERT INTO statements for the tables), and expected results that properly illustrate what it is...
February 1, 2010 at 6:21 pm
Didn't think of this earlier, but you really shouldn't be using @@IDENTITY either. You should be using SCOPE_IDENTITY().
February 1, 2010 at 5:40 pm
mcommmgr (2/1/2010)
February 1, 2010 at 4:00 pm
lmu92 (2/1/2010)
Lynn Pettis (2/1/2010)
Stumbled onto the thread the Lutz was talking about. Steve took care of the sample data.
Please note my statement from one of my previous posts 😉
Any...
February 1, 2010 at 3:33 pm
I'm sorry, but I really need something to work with to help. Tables, sample data, expected results all would help greatly with understanding the problem.
February 1, 2010 at 3:31 pm
mcommmgr (1/25/2010)
February 1, 2010 at 3:29 pm
Stumbled onto the thread the Lutz was talking about. Steve took care of the sample data.
February 1, 2010 at 2:54 pm
David-155102 (2/1/2010)
As simple as that! Thanks for your help!
All I did was verify the EXECUTE statement syntax in Books Online (Shift {f1} in SSMS).
Glad I could help.
February 1, 2010 at 2:50 pm
Try this:
exec InsertVersion 'EE','JUL','2001-01-01','2001-02-01','dw134121',1, @id OUTPUT
February 1, 2010 at 2:44 pm
Care to provide an example of what you are talking about? Table def(s) (CREATE TABLE statement(s)), sample data (series of INSERT INTO statements for the table(s)), expected results based...
February 1, 2010 at 2:40 pm
To make things a little clearer, I hope, the following are equivalent:
select * from dbo.Customer cus where exists(select * from dbo.Order ord where ord.CustomerID = cus.CustomerID);
select * from dbo.Customer cus...
February 1, 2010 at 2:18 pm
Agree I must with Alvin and Roy.
February 1, 2010 at 2:02 pm
Depending on how many records your inserting into your table variables, you may want to change those to temp tables. As the number of rows increases the chances of...
February 1, 2010 at 1:46 pm
I have some code for you, it requires that you have a Tally table to work. You should look at the fourth article I reference below in my signature...
February 1, 2010 at 1:22 pm
Converting your existing function into an Inline TVF is not going to be easy and it may not solve your problem. One reason I say that, NVARCHAR(MAX)/VARCHAR(MAX) fields. ...
February 1, 2010 at 12:44 pm
Viewing 15 posts - 17,086 through 17,100 (of 26,489 total)