Viewing 15 posts - 16 through 30 (of 94 total)
I have experienced similar results when creating a new database. I believe nothing is visible until at least one user object is available. Just so you know you are not...
December 16, 2005 at 1:15 pm
An easier way is to set the @DateFirst to show day 1 as Monday. Do this with:
set datefirst 1
December 6, 2005 at 7:10 am
Research the use of triggers on the table to track the changes or put the audit trail within the stored procedures used to update the tables. If users can directly...
December 3, 2005 at 12:43 pm
To my knowledge, stored Procedures are compiled every time you alter and run the SQL of the procedure. What is your concern or doubt?
December 3, 2005 at 12:36 pm
Use the Datediff function:
Current Week: DateDiff(wk,datefield,getdate()) = 0
Previous Week: DateDiff(wk,datefield,getdate()) = 1
Current Month: DateDiff(mm,datefield,getdate()) = 0
Previous Month: DateDiff(mm,datefield,getdate()) = 1
December 3, 2005 at 12:34 pm
I'm not sure I'm following your question. Can you post a few rows and show the select statement?
December 3, 2005 at 12:09 pm
From Books On Line:
@@ERROR is the only part of a Microsoft® SQL Server™ 2000 error available within the batch, stored procedure, or trigger that generated the error. All other parts...
November 16, 2005 at 7:33 am
Sivakumar,
I don't see where you are using the sp_executesql. The cursor declaration needs to be part of the @SQL string. But what are you trying to achieve? It would appear...
November 15, 2005 at 8:04 am
Mark is correct you could have two separate SQL statements within the proc, however beware of the execution plans. It will be saved with the first performance and whatever table...
November 14, 2005 at 1:48 pm
That is why if find the use of table aliases critical to readability and debugging of SQL statements. In case you haven't used them your SQL could change to:
SELECT t1.field1,...
November 14, 2005 at 1:44 pm
Regardless of how you do it you won't get out of the query building process, however you can get out of it with some programming. Our internal OMS was written...
July 29, 2005 at 7:40 am
True, but the they (Microsoft and the company creating the charting tool) are working on enhancements for this year. Also remember this is a 1.0 product. I'm sure it will...
June 23, 2005 at 8:43 am
I've just displayed the data below the chart in a table or matrix like a standard report.
June 23, 2005 at 8:13 am
My suggestion then is to add tblSite to the view in question and see what the execution plan is. You may also want to make it a stored procedure that...
March 4, 2005 at 8:41 am
Why are you using an subquery?
select CASE WHEN Invoice_FK IS NOT NULL THEN 'Invoice ' + ' Invoice_ID:' + CONVERT(VARCHAR,INvoice_fk) END
, Amount as Amount
, st.add_datetime as...
March 4, 2005 at 8:31 am
Viewing 15 posts - 16 through 30 (of 94 total)