Viewing 15 posts - 4,396 through 4,410 (of 6,036 total)
If the last suggession is right then yucan use:
ALTER DATABASE [MyDatabase] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
... Some actions ...
ALTER DATABASE [MyDatabase] SET MULTI_USER
April 23, 2007 at 5:26 am
GETDATE() is not allowed insede UDF.
And it's good. It force you to make your code better.
This function is more universal: it will return exprerience on any given date.
-------------------------------
create function dbo.get_xperience
(@empno...
April 23, 2007 at 4:19 am
DROP INDEX ...
DROP INDEX ...
DROP INDEX ...
(Except clustered index)
INSERT INTO ...
CREATE INDEX ...
CREATE INDEX ...
CREATE INDEX ...
April 21, 2007 at 9:38 pm
Suppose you have the table called TableA and the type of check-in date is char:
(almost like your example, just some dates are changed)
TableA
pid RoomNo ...
April 21, 2007 at 3:33 pm
Try it.
Reading of this topic
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=358909
will probably help you.
April 20, 2007 at 7:27 am
What's a point of collecting huge amount of data on some server where you cannot get any use of it?
If you mean to work out the data in another place...
April 20, 2007 at 5:36 am
Read about syscolumns in BOL.
Your answer in there.
April 19, 2007 at 7:44 pm
What's a point?
If B.OCCUSEQNO is a number then CAST(B.OCCUSEQNO AS VARCHAR(9)) will return absolutely the same string as CAST(B.OCCUSEQNO AS VARCHAR(1009))
April 19, 2007 at 5:04 pm
Left join table tblAttach to itself on A1.PoleID = A2.PoleID and A1.AtHeight < A2.AtHeight
April 19, 2007 at 4:59 pm
Try use APP_NAME() inside the code executed by Job.
It will return string like this:
SQLAgent - TSQL JobStep (Job 0x{Job_ID} : Step {N})
Let me know if you need further explanations.
April 19, 2007 at 4:55 pm
Are there empty strings somewhere in those numeric columns?
Empty string cannot be converted to int. You must use NULLIF(COL_STR, '') to make it NULL.
Check data in the file. There must...
April 19, 2007 at 6:27 am
> e.g. select * from "master"."DBO"."Sysobjects" will work in any SQL Server
It will not work on SQL Server 2005.
April 18, 2007 at 10:02 pm
I was replying not on your post.
It was a reply in 7-bit ACSII restriction approach.
See the quote I put in my post.
If you consider this you probably don't need any...
April 18, 2007 at 7:30 pm
What about reports?
What about "FOR XML" statements?
Can you dictate the names used there?
I guess you cannot. Even if you are CEO in your company.
Because those reports go to other companies...
April 18, 2007 at 3:56 pm
Viewing 15 posts - 4,396 through 4,410 (of 6,036 total)