Viewing 15 posts - 226 through 240 (of 346 total)
The problem here is that the variables are declared outside the scope of the dynamic SQL statement...either declare the variable within the dynamic SQL (this might not be of any...
November 11, 2008 at 5:01 am
What kind of memory pressure errors are you seeing in the SQL error log? Are you using CLR TVFs, SPs or UDTs?
Have you applied SQL Server SP2? (there were CLR...
November 11, 2008 at 4:50 am
SQL 2005 has an additional security check to ensure that passwords for logins meet the strong password requirements (i.e. at least 8 characters long, combines letters,numbers and symbols etc
Either you...
November 4, 2008 at 7:48 am
you could also use joins...
SELECT t1.* FROM t1 INNER JOIN t2 ON t1.c1 = t2.c1 AND t1.c2 = t2.c2
May 30, 2005 at 1:39 pm
Using the @query argument of xp_sendmail should (if I remember rightly) send the results of a query in the mail (in CSV format I think)...
Exec master.dbo.xp_sendmail @recipients = 'me@meltd.com',...
October 25, 2004 at 8:04 am
I don't think attach / detach are available from EM in SQL 7.0...you'd have to use the stored procedures for the same...
September 30, 2004 at 2:30 am
yes...the NEWNAME option was added in SQL 2000 and isn't available in SQL 7.0...the only workaround (AFAIK) was modifying the system tables directly ()
any specific reason...
September 30, 2004 at 1:22 am
did you try setting these options within the dynamic SQL??...something like :
EXEC('SET ANSI_NULLS ON SET ANSI_WARNINGS ON INSERT ' + @ServerDb + '.tblFileNumber (TitleworxFileNumber, OfficeID, RegionID) SELECT TitleworxFileNumber, OfficeID,...
September 30, 2004 at 12:41 am
sp_attach_db and sp_detach_db are available in SQL 7.0 also...these can be used to attach and detach databases in SQL 7.0...
September 30, 2004 at 12:30 am
works for me too (with and without the single quotes for the names)
ALTER DATABASE MetaData
MODIFY FILE(NAME=MetaData_Data, NEWNAME=MetaData)
GO
ALTER DATABASE MetaData
MODIFY FILE(NAME='MetaData', NEWNAME='MetaData_Data')
What is the exact error description you are seeing?
September 30, 2004 at 12:21 am
these can be obtained from IDENT_INCR and IDENT_SEED
SELECT
Table_Name,
Column_Name,
IDENT_SEED(Table_Name) Seed,
IDENT_INCR(Table_Name) Incr
FROM INFORMATION_SCHEMA.COLUMNS
WHERE
COLUMNPROPERTY (OBJECT_ID(Table_Name),Column_Name,'IsIdentity') = 1
September 24, 2004 at 12:11 am
TRUNCATE TABLE can't be run directly against the four-part name associated with a linked server. You'll need to wrap this up with an sp_executesql:
EXEC [AHL_SQL7\WORKSPACE].MarketingCF.dbo.sp_executesql N'TRUNCATE TABLE Mthly_LIF'
September 22, 2004 at 10:20 pm
I'm not sure if I completely understood your problem -- if you can handle the error in the stored procedure then there should be no problem (i.e. within the stored...
September 22, 2004 at 8:42 am
From BOL ("deterministic functions" in the index keyword search):
All functions are deterministic or nondeterministic:
September 19, 2004 at 6:03 pm
What is the result if 4 part naming is used to retrieve data??...i.e SELECT * FROM <servername>.<databasename>.<ownername>.<tablename> -- does this result in the rows being returned??
and perhaps using SET FMTONLY OFF in the...
August 23, 2004 at 10:41 pm
Viewing 15 posts - 226 through 240 (of 346 total)