Viewing 15 posts - 16 through 30 (of 141 total)
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=263197
and
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=293095
have similar situations.
The first is very tricky as the statement
Set @Var = Exec ServerName.DB.DBO.proc
works while
Insert TableName
Exec ServerName.DB.DBO.proc
doesn't.
February 7, 2007 at 2:15 pm
I saw three related/similar posts in this forum/site. None of which have a finite solution.
February 7, 2007 at 2:07 pm
Any resolution to this one yet?
February 7, 2007 at 10:12 am
I have this same problem. Any resolution to this yet? It may have something to do with triggers. Triggers are part of the transaction.
February 7, 2007 at 9:51 am
Thanks everyone for all your inputs. "scptxfr.exe" is very helpful for the database objects. I'm still looking at DMO for the repliactions, jobs.
February 5, 2007 at 9:02 am
You can change the logon account used by the MSSQLServer service.
Start > Run > Services.msc
Right-click the MSSQL service, properties, and change the logon account at the Logon tab.
January 30, 2007 at 11:21 am
sysprocesses -- thanks Bill! I'll have a look.
January 30, 2007 at 10:57 am
That would be quite difficult as the script is in an input file.
However, I fount in one of the links you gave, a way to append all the output in...
January 24, 2007 at 4:12 pm
Thanks James, however, the cmd sees the OSQL command as not having an error.
Here's what I did.
--Batch File--
@ECHO OFF
OSQL -E -SHQSearch3 -i"C:\SQL DBA\ServerDrivesMonitoring\ServerDrivesMonitoring.sql" -o"C:\SQL DBA\ServerDrivesMonitoring\HQSearch3Result.txt"
IF NOT ERRORLEVEL 0 Goto...
January 24, 2007 at 10:10 am
Thanks for all your replies. I'll look into these tools.
BTW, the reason why I need to know which is causing the log outbursts (probably a job) is to find out if...
January 16, 2007 at 2:31 pm
Select distinct * INTO #tmp from YourTable
Truncate Table YourTable
Insert YourTable Select * from #tmp
January 10, 2007 at 1:46 pm
Use a temp table...
Create #tmpTable(definition here)
Insert #tmpTable
Exec(@Qry)
If the cursor is really needed,
...cursor for select * from #tmpTable
David's answer will no work as Vladan mentioned, since the cursor is declared inside the dynamic SQL,...
January 9, 2007 at 10:24 pm
Frances,
The answer has been mentioned in this thread so many times... USE THIS..
update InpatientMedStat set InpatientMedStat.PrincipalDiagnosisCode = ltrim(rtrim(rptpxa2.DCode)) from InpatientMedStat
INNER JOIN rptpxa2 ON InpatientMedStat.PatientAccountNumber = rptpxa2.PNO
WHERE (LEN(RTRIM(InpatientMedStat.PrincipalDiagnosisCode)) = 0) and (rptPXA2.DCode)...
January 9, 2007 at 7:42 pm
Where exists(Select 1 From apvend Where fvtype = 'MD' AND apvend.[rcitem].[fvendno] = [rcitem].[fvendno])
January 8, 2007 at 2:08 pm
Viewing 15 posts - 16 through 30 (of 141 total)