Viewing 15 posts - 12,811 through 12,825 (of 15,381 total)
peter478 (3/8/2012)
again: input parameter is date:e.g. 1.3.2012
DECLARE @dat1 as datetime
DECLARE @SQLString NVARCHAR(4000)
SET @dat1...
March 8, 2012 at 11:06 am
To answer when you should use it...I would avoid it unless there is a legitimate reason to use it. Often it gets used as a primary key which causes performance...
March 8, 2012 at 10:59 am
Well you could add an ISNULL to your query.
ISNULL(col1, 0) as col1
Or is that what you are trying to avoid? You have to either handle it in your query...
March 8, 2012 at 10:50 am
Eugene Elutin (3/8/2012)
Beginner_2008 (3/8/2012)
I am not going to use the cursor.😛
Then, you may miss some updates!
There was a story remembered by some one here, about the company went bust...
March 8, 2012 at 10:46 am
You want the value of the variable so it is just string concatenation.
declare @MyVar varchar(10) = 'like this.'
declare @SQLString varchar(max)
set @SQLString = 'You append your variable ' + @MyVar
select @SQLString
March 8, 2012 at 9:59 am
Beginner_2008 (3/8/2012)
Sean Lange (3/8/2012)
Beginner_2008 (3/8/2012)
Sean Lange (3/8/2012)
Beginner_2008 (3/8/2012)
Thanks for the suggestions.Can anybody please provide the best alternative with an example? I am new to Database mail.
Here is a good place...
March 8, 2012 at 9:31 am
At least a few rows for each table would make it a lot easier.
March 8, 2012 at 9:22 am
Beginner_2008 (3/8/2012)
Sean Lange (3/8/2012)
Beginner_2008 (3/8/2012)
Thanks for the suggestions.Can anybody please provide the best alternative with an example? I am new to Database mail.
Here is a good place to start. http://msdn.microsoft.com/en-us/library/ms175887.aspx
Any...
March 8, 2012 at 9:05 am
Can you post ddl and some sample data along with desired results based on the sample data? Take a look at the first link my signature for how to post...
March 8, 2012 at 8:39 am
venoym (3/8/2012)
March 8, 2012 at 8:36 am
Beginner_2008 (3/8/2012)
Thanks for the suggestions.Can anybody please provide the best alternative with an example? I am new to Database mail.
Here is a good place to start. http://msdn.microsoft.com/en-us/library/ms175887.aspx
March 8, 2012 at 8:33 am
Two questions.
1) Why global temp tables? You are dropping a global temp table which means if you have another process using it you just dumped it in the middle of...
March 8, 2012 at 8:25 am
Golden_Behzad (3/8/2012)
how to use?
As explained previously in this thread, it is an IDENTITY.
March 8, 2012 at 8:02 am
saidapurs (3/8/2012)
Just for cross verification, like if you connected my instance from your server that log will generate in my Error log files &...
March 8, 2012 at 7:56 am
Cross join doesn't even make sense here. It is a single non-normalized table with two columns.
As Gail said, the best approach is to find a string splitter and cross apply....
March 8, 2012 at 7:46 am
Viewing 15 posts - 12,811 through 12,825 (of 15,381 total)