Viewing 15 posts - 151 through 165 (of 294 total)
Correct, I'm well aware of the problem with @@identity, in fact I was 'stung' by it at the last place. Andy is right, the Scope_Identity is better, as Ident_current('tbl')...
August 9, 2007 at 7:26 am
/*
Excellent. I tried to go back to the source tables as they always contain the
latest record, but that goes against the grain of what we are trying to do.
Your sugestion is spot on, and once again I learn something new.
I followed BOLs advice and used the rowversion synonym, which until now I'd never heard of.
Cheers!
Dave J
*/
----------------------------------------------------
--table definition
IF OBJECT_ID('Tick_info_history') > 0
DROP TABLE TICK_INFO_HISTORY
GO
CREATE TABLE TICK_INFO_HISTORY (
TICKET_TXN_ID INT NOT NULL,...
August 9, 2007 at 3:49 am
I don't know ADO but I'd bet its a place holder. Look at this line
adoParameter.Value = vWhereValues.Items(queryParameterCount - 1)
That sets the value of the ? with whatever vWhereValues.Items(queryParameterCount -...
August 7, 2007 at 11:45 am
Is this from a DTS Package? If so, it's a place holder for a parameter.
HTH
Dave J
August 7, 2007 at 11:29 am
I seem to post this a lot
Look at this thread, I had a very similar problem, which was soon worked out.
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=242919
HTH
Dave J
July 10, 2007 at 2:31 pm
The way I do it is
select Left(GetDate(),11)
simply because it's less typing
Dave J
July 6, 2007 at 2:35 pm
Good catch Jeff.
Sorry Shane, I should have said "look *in* Books Online"
Dave J
July 6, 2007 at 2:12 am
Look at the topic "expanding hierarchies" on Books on Line. I have adapted this to my particular problem myself and it works well.
HTH
Dave J
July 5, 2007 at 11:25 am
Hello Sergiy
As for me there is nothing good in not having education essential for the job.
...
I hope you not gonna let this situation stay for long. Best luck to you...
July 4, 2007 at 2:41 pm
US Ascent training? Do you mean US Accent training? And if you do, that's bizzare!
Happy Independance day you backstabbers.
July 4, 2007 at 5:39 am
Personally I would (and do) use profiler, and save the results to a table which I could (and can) query later.
HTH...
July 2, 2007 at 2:22 pm
Oops!
Yours is an excellent method. I looked at the results and thought "That's odd." But you're Spot on. ...
July 2, 2007 at 2:17 pm
Peter, shouldn't your derived table look like this?
SELECT MONTH(DataDate) AS theDate, 'Total' AS theCategory, TotalCount AS theValue FROM @MyTable UNION ALL
SELECT MONTH(DataDate), 'Count10s', Count10s FROM @MyTable UNION ALL
SELECT MONTH(DataDate), 'Count20s',...
July 2, 2007 at 11:57 am
"As a matter of fact, if anyone has been required to produce random rows, I wouldn't mind hearing from you, either."
I once wrote a query to return 20 Random telephone...
July 1, 2007 at 4:00 pm
Viewing 15 posts - 151 through 165 (of 294 total)