Viewing 15 posts - 7,906 through 7,920 (of 8,731 total)
This might not be the best way to achieve what you're looking for and might need some changes to adjust to your real data. However, this can be a start....
July 17, 2013 at 2:12 pm
There are 2 great articles from Jeff Moden. Here's the part on dynamic pivoting
July 17, 2013 at 8:58 am
You might want to try something like this
Declare @msg varchar(8000),
@TargetData varchar(max)
Set @TargetData = "Target Project Name"
Set @msg= 'Are you sure you wish to copy the...
July 17, 2013 at 8:55 am
You should do it in several batches. If you give us the code you're using, we might be able to help more. A simple example could be this.
SELECT 1
WHILE @@ROWCOUNT...
July 16, 2013 at 12:58 pm
GilaMonster (7/16/2013)
ramyours2003 (7/16/2013)
what are the possible reasons for not truncating the log file ?
There are no good reasons for not truncating the transaction log, unless you want to...
July 16, 2013 at 10:27 am
I'm glad I could help. It might not have been possible without the great articles from Jeff. 🙂
July 15, 2013 at 4:21 pm
A new search brought the information for 2005.
http://msdn.microsoft.com/en-us/library/ms170363%28v=sql.90%29.aspx
July 15, 2013 at 4:18 pm
This can help you for SQL Server 2012, 2008 & 2008R2. I'm not sure if there's a list for 2005 somewhere in the web (there used to be).
July 15, 2013 at 4:17 pm
Using DATEADD
SELECT DATEADD(YEAR, -2, GETDATE()), CAST( DATEADD(YEAR, -2, GETDATE()) AS DATE)
July 15, 2013 at 3:03 pm
The problem is that you don't have any parameters declared. All you have are variables.
Without knowing more about your SP, this might help but you might want to remove parameters...
July 15, 2013 at 2:32 pm
I just tried it and it worked fine.
I can't replicate your error either for a missing linked server or a misdirection for the database. Maybe someone else can help...
July 15, 2013 at 2:28 pm
Could you post the complete definition of the stored procedure?
try to use the IFCode located in the left when you write the post [ code="sql"][/code]
July 15, 2013 at 2:00 pm
If you ever cross with a spanish last name with spaces, you might have problems with the 8K splitter.
This formula might have its own problems, but it's another option for...
July 15, 2013 at 1:37 pm
That's not the code for a Stored Procedure. If you have defaults assigned to the parameters, then the SP won't forrce you to input any parameter.
July 15, 2013 at 1:24 pm
Viewing 15 posts - 7,906 through 7,920 (of 8,731 total)