Viewing 15 posts - 1,186 through 1,200 (of 1,417 total)
I think the only possible solution would be dynamic SQL. Get all your info (including required fields, alternate fieldnames, tables, etc.) from the client and build the query with this...
May 21, 2013 at 12:26 am
I've read your first post again and noticed something. You are using DTSRUN in your command prompt. The dtsrun command prompt utility (dtsrun.exe) that was used in SQL 2000 has...
May 20, 2013 at 11:49 pm
steps to generate the automated process:
- manually go througt the RESTORE GUI and generate a script for the complete restore command
- change the name of the backupfile in the generated...
May 16, 2013 at 3:47 am
If I understand correctly, you want the values out of a dynamic number of colums and use these values to create a new query.
It takes several steps to accomplish this....
May 16, 2013 at 3:24 am
Remember: if within a CASE statement the WHEN clause is TRUE, the following WHEN statements and the ELSE statement is not executed anymore.
So if some data in your example contains...
May 16, 2013 at 2:30 am
No, you should put the "EXEC sp_trace_setstatus 2, 1" command in the IF block, just before or after the mail command. Because of the "not exists" check, the first IF...
May 16, 2013 at 12:19 am
Check the recovery model of the database. If it is in FULL recovery you need to take frequently LOG-backups (every 15 - 30 minutes). If you don't do that the...
May 15, 2013 at 5:44 am
You have mixed Visual Basic language (private sub....) with T-SQL (Select Case ....). Those languages can't be combined in one statement.
The code you stated is more Visual Basic then T-SQL...
May 15, 2013 at 5:37 am
Open a command prompt on each node, navigate to the root of the disk and execute "dtexec /?" (without quotes). Compare the version number in both outputs. They should be...
May 15, 2013 at 5:22 am
I guess the outlining is not correct in your view due to a (very) different length of the data in each row. In most text editors tab-stops are pre-defined. When...
May 15, 2013 at 5:02 am
Jeff Moden (5/14/2013)
HanShi (5/14/2013)
** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **I absolutely love that quote.
Thanks Jeff.
And especially on the internet this is...
May 14, 2013 at 11:59 pm
Like Matthew before mentioned, the subsequent criteria is only checked when the previous is failed. You could combine the criteria with an OR statement
SELECT
[Response]
...
May 14, 2013 at 6:46 am
The mail generated by the Job Notification system is predefined and AFAIK it can't be changed. The only way to accomplish your request is to create your own messaging system...
May 14, 2013 at 6:26 am
place the mail procedure inside an IF statement
IF not exists(SELECT * FROM ::fn_trace_geteventinfo(2))
BEGIN
EXEC msdb.dbo.sp_send_dbmail @profile_name = 'DBA Alert',
@recipients...
May 14, 2013 at 5:44 am
No databases will go offline. It wil generate error level 17 messages stating "object xx can't be created in filegroup yy for database TempDB" and the transaction(s) will be cancelled...
May 14, 2013 at 5:32 am
Viewing 15 posts - 1,186 through 1,200 (of 1,417 total)