Viewing 15 posts - 436 through 450 (of 1,346 total)
Try This.
Select substring(cast(Processos.Dataabertura as char),1 , 12)+substring(cast(processos.horaabertura as char),1, 5) as date1,
substring(cast(cabecinterv.Datafim as char),1 , 12)+substring(cast(cabecinterv.horafim as char),1, 5) as Date2
FROM Cabecinterv, Processos WHERE (Cabecinterv.Processo=Processos.Processo)
AND ((NOT Processos.Fechado=0) AND Cabecinterv.Estado...
October 20, 2006 at 9:45 am
Your missing something
If Exists(select substring(Col001,1,2)from Emp where substring(Col001,17,2)='DH' And substring(Col001,17,2)='DH' not in (@per))
But is easier to read if
If Exists(select * from Emp where substring(Col001,17,2)='DH' And substring(Col001,17,2)='DH' <> @per)
October 20, 2006 at 9:40 am
IMO A trigger is the worst place.
It holds your transaction open until the copy to the other server is complete. So the question would be what happens of one of...
October 20, 2006 at 9:36 am
-- Comments Added
ALTER PROCEDURE dbo.test2
@quiz nVARCHAR( 25 ),
@debug bit = 0
as
DECLARE @sql nvarchar(4000),
@paramlist nvarchar(4000)
begin
CREATE TABLE #tmpTrained(
EmplID char(30))
set @sql='select distinct EmplNO from tblCurrentWinTrainingLog where 1=1'
set @sql=...
October 20, 2006 at 9:33 am
First I would recommend you explicitly specify the length of your cast.
cast(Processos.Dataabertura as char(12)
But also just execute this
Select substring(cast(Processos.Dataabertura as char),1 , 12)+substring(cast(processos.horaabertura as char),1, 5) as date1,
substring(cast(cabecinterv.Datafim as char),1...
October 20, 2006 at 9:21 am
For sql server you would use the SQL Profiler Tool
it is fairly robust in terms of capturing events on the server.
Heres a quick read
October 20, 2006 at 9:06 am
Why would you want to do that?
Here is a must read if your thinking of going down this road.
October 11, 2006 at 9:52 am
Not without dynamic sql.
using exec sp_executesql, or EXEC()
If you have not read, here is a great page concerning dynamic sql.
http://www.sommarskog.se/dynamic_sql.html
I am not an advocate of using dynamic sql to...
September 28, 2006 at 9:03 am
Can U do Derived Table
Select count(*)
From (select distinct QuestionTreeUID FROM tbl_NSP_Answer) T
September 19, 2006 at 11:25 am
Select *
From Forum_Child
join (Select max(ID) as LastID, PID
From Forum_Child
Group by PID) T on LastID = ID
September 18, 2006 at 7:44 pm
Yes,
In QA Open the Object browser
Tools --> Object Browser --> Show/Hide.
Locate the stored procedure in db you want, Rightclick, Select Debug.
Enter parameters if required.
Not perfect, but works
September 18, 2006 at 10:19 am
That function looks fairly straightforward, and by itself I bet it runs fine.
My guess is how your using it in your select statement.
Can you post that too?
September 14, 2006 at 8:36 am
Thats the rub, You really can't.
you can create your own page in .NET, and call the report via URL Access and drop the report in a reporting services "Control"
September 14, 2006 at 8:33 am
Viewing 15 posts - 436 through 450 (of 1,346 total)