Viewing 11 posts - 196 through 206 (of 206 total)
I can't test this but off the top of my head you could try something like this:
begin transaction tran1
build an insert string
begin transaction tran2
create your table
exec insert string
commit tran2
send email
commit...
July 22, 2009 at 6:27 am
Here is the only difference I have found to tell for sure. On 64-bit sql instances this returns 2 rows
name
affinity64 mask
affinity64 I/O mask
SELECT [name] FROM sys.configurations
WHERE NAME LIKE '%64%'
on...
July 21, 2009 at 3:00 pm
select @@version works for the 64-bit sql edition but i am not sure how to get the OS.
output from select @@version on 64-bit machine.
Microsoft SQL Server 2005 - 9.00.4035.00 (X64)...
July 21, 2009 at 2:23 pm
When you open the maint plan in SSMS there is a button in the toolbar "Reporting and logging". I think that is what you are looking for.
July 21, 2009 at 2:06 pm
Does this work?
SELECT r.oid,r.sid,r.rid from #b r
WHERE NOT EXISTS (SELECT 1 FROM a WHERE a.oid = r.oid AND a.sid = r.sid AND a.rid = r.rid)
July 21, 2009 at 8:21 am
I am with David on this one. Use a batch file in dos with sqlcmd to execute your sql or use xp_cmdshell in sql to execute your dos commands.
July 21, 2009 at 8:10 am
Try something like this to get out of the dynamic SQL
SELECT TOP 100 PERCENT T.*
FROM ( SELECT strEmpID, MIN(TD) as Times, DepCode as [Shift]
FROM EDS_TD WHERE DATEPART(dd,TD)
IN...
July 20, 2009 at 2:58 pm
If the first connection is sucessful and you are using the .net platform to connect then the connection string will automatically pick up the mirror instance. Here is the...
July 20, 2009 at 2:24 pm
Try seaching for a script with the sp_MSforEachTable. It is an undocumented stored proc that will loop through all the tables in the database. If you can't find...
July 20, 2009 at 11:16 am
INSERT INTO OPENQUERY(SE755_VISTA, 'SELECT FormType,FormNumber,ScanDateTime,DuplicateChecked
BatchNum,SeqNum,FormImage FROM Biovail_Images.dbo.FORMIMAGES' )
check to make sure all of your columns are separated by commas.
DuplicateCheck and BatchNum don't have a comma between them.
July 20, 2009 at 9:57 am
Is something like this what you are looking for? I just used a temp table but check out the update statement. I think it is close to what...
July 20, 2009 at 9:11 am
Viewing 11 posts - 196 through 206 (of 206 total)