Viewing 15 posts - 691 through 705 (of 907 total)
Have you checked out Schema Alert by Lumigent (http://www.lumigent.com
)? Also you could periodically run the following: against each of your databases
select * from sysobjects where crdate >...
October 8, 2002 at 4:42 pm
This is great it worked.
This leads me to think (a very dangerous thing to do) that the login you originally mapped your SQL Server Agent account to, might...
October 8, 2002 at 9:44 am
Run sp_helplinkedsrvlogin and review the output. Verify that your server A login, maps to the correct Remote Server login.
You might try to logon to Server A using your SQL...
October 8, 2002 at 8:36 am
You need to review what logins have you mapped from Server A to Server B. Is the SQL Server Agent login on Server A mapped? I suspect that...
October 8, 2002 at 7:37 am
I'm guessing your server does not have access to the UNC name. Check to make sure the service accounts (MSSQLSERVER and SQL SERVER AGENT) have access to the network...
October 7, 2002 at 12:06 pm
Is this what you are looking for?
create table mytable (time text, mydate text)
insert into mytable values('00:10:10','20021007')
select * from mytable
DECLARE @TIME CHAR(8)
declare @MYDATE CHAR(8)
SELECT @TIME=TIME, @MYDATE = MYDATE FROM MYTABLE
DECLARE @MY_CENTRAL_TIME...
October 7, 2002 at 12:00 pm
I would use a full UNC name. Also you local machine will need access to that UNC name. Here is how to cerate a backup device:
sp_addumpdevice 'disk','<device name>','\\<machinename>\<directory>\bckup...
October 7, 2002 at 11:42 am
The dateadd function requires a datetime or smalldatetime date type arguement, and you passed it a text datatype. Try something like this.
create table mytable (time text)
insert into mytable values('10:10:10')
select...
October 7, 2002 at 11:33 am
I'd write dynamic sql to do this. I would process through SYSINDEXES and use the "PRINT" statement to build the appropriate T-SQL statements to move the indexes.
Gregory Larsen, DBA
If...
October 7, 2002 at 9:28 am
Your product list is a char field. So each value will need quotes around it, so I think I might consider trying this:
DECLARE @prodlist VARCHAR(8000)
SET @prodlist = '''EP01'',''EP02'',''EP03'''
SELECT *...
October 7, 2002 at 9:20 am
Maybe I should have read you post a little closer. I believe you can only identify the filegroup in which the table belongs, and not the individual files within...
October 3, 2002 at 12:52 pm
Here is a query that should get you started:
select i.id,o.name,i.name, filename from sysobjects o
join sysindexes i on o.id = i.id...
October 3, 2002 at 12:37 pm
When users create tables, and are members of the db_owner role, then all tables they create, without specifically specifying the owner, will be created with DBO as the owner.
Gregory Larsen,...
October 3, 2002 at 11:42 am
use the classic divide by zero trick, like so when you want to bomb the code being executed by a TSQL script.
select 1/0
This will cause the step to fail....
October 3, 2002 at 11:39 am
You are going to have to build you code dynamically. Here are a couple of links that might help:
http://www.sqlservercentral.com/columnists/rmarda/dynamicsqlversusstaticsqlp1.asp http://www.sqlservercentral.com/columnists/rmarda/whendynamicsqlisuseful.asp
As validation parms, your could do some thing like...
October 3, 2002 at 11:26 am
Viewing 15 posts - 691 through 705 (of 907 total)