Viewing 15 posts - 181 through 195 (of 271 total)
Hi,
If I have understood the question correctly then you could use a PIVOT function to acheive this.
http://msdn.microsoft.com/en-us/library/ms177410.aspx
Hope this helps.
August 27, 2009 at 2:53 am
Hi,
I have already provided you with a link for this in one of your other posts
(http://www.sqlservercentral.com/Forums/Topic777335-146-1.aspx)
Can you please stop making multiple posts.
August 26, 2009 at 3:06 am
August 26, 2009 at 2:07 am
There may be a better way to do this but I would do something like this;
DECLARE @IdEmpresa INT,
@IdOficina INT
SELECT @IdEmpresa = code to set the value,
...
August 21, 2009 at 10:40 am
Hi Luis,
Can I ask how these values are set? Are they outputs of the previous procedure calls within the job.
Am I right in assuming your job is simply executing...
August 21, 2009 at 9:57 am
Hi,
I think this may be able to help you out;
SELECT SysT.Name AS TableName,
SC.Name AS ColumnName
FROM Sys.Tables SysT
INNER JOIN Sys.SysIndexKeys SysIK ON SysT.object_id = SysIK.id
INNER JOIN sys.syscolumns SC ON SysIK.colid =...
August 19, 2009 at 2:25 am
or in your case;
sp_msforeachdb @command1 = 'SELECT [ABC]
,[123]
FROM [dbo].[tabledata]
Where FieldName = ''QWERTY'''
August 13, 2009 at 10:19 am
Hi,
You could use the undocumented function sp_msforeachdb.
Simple as;
sp_msforeachdb @command1 = 'SELECT ''123,?'''
The ? is the variable, in this case the database name.
Hope this helps.
August 13, 2009 at 10:18 am
Thanks for the additional info.
I assume the agent has permissions to write where you are trying to backup to.
Have you tried logging in (assuming you have permissions) and manually running...
August 10, 2009 at 9:54 am
Hi,
Is there any more information, other than the code? Try having a look in the error log and event viewer.
Is this error occuring when you run a backup or...
August 10, 2009 at 9:24 am
what happens when you remove the PRINT statement again, does it still run in 130 seconds.
It sounds to me as if the procedure is cached.
August 6, 2009 at 3:18 am
I had the same issue, this may sound silly, but when you copy the data from the window, wait 5-10 seconds and then paste it into your other application.
Obviously watch...
July 31, 2009 at 4:45 am
Hi,
I'm currently doing a similare excerise to reduce the fullscans/sec on some legacy objects.
One thing that helped me was to profile the 'Scan Started' event and set a filter where...
July 24, 2009 at 6:44 am
Also found this, it may be of some use.
http://www.sqlbackuprestore.com/backuprestorehistorytables.htm
July 17, 2009 at 10:10 am
Hi,
Have a look in;
SELECT * FROM msdb.dbo.backupmediafamily
It contains a number of records for each db, so you will need to get it to only pick up the latest one, but...
July 17, 2009 at 9:59 am
Viewing 15 posts - 181 through 195 (of 271 total)