Viewing 15 posts - 1,306 through 1,320 (of 2,647 total)
Great! Good for you! 🙂
I assume there was question you wanted to ask, or you were just letting us know? 😀
March 27, 2012 at 2:55 pm
My guess is that SSIS is converting the column.
If you run this code:CREATE TABLE #temp (create_date DATE)
INSERT INTO #temp
SELECT 20120501
You get an error... right? Why do you think that it...
March 27, 2012 at 2:52 pm
ilike doing these types of things in steps to verify what I have done:
USE test
CREATE TABLE #test (gobbledegook VARCHAR(30))
INSERT INTO #test
SELECT '*12345'
UNION ALL
SELECT '*6789-hir'
UNION ALL
SELECT 'hello-john'
SELECT gobbledegook, CHARINDEX('*', gobbledegook, 1)
FROM...
March 27, 2012 at 12:29 pm
SS999 (3/27/2012)
Currently its on sql server 2005.
Replace
SET @OneMonthBackDate = CAST(DATEADD(mm, -1, GETDATE()) - DAY(GETDATE()) AS DATE)
with this:
SET @OneMonthBackDate = CAST(DATEDIFF(D,0,DATEADD(mm, -1, GETDATE()) - DAY(GETDATE())) AS DATETIME)
March 27, 2012 at 12:01 pm
SS999 (3/27/2012)
I m trying to execute ur code to test and i get this error.
Msg 243, Level 16, State 1, Procedure Select_QuotestoBind_TestSample, Line 9
Type DATE is not a defined...
March 27, 2012 at 11:48 am
The Dark Passenger (3/27/2012)
It means when the code dealing with the amount of data having memory space required more than RAM we get physical reads...am I right?
I think we are...
March 27, 2012 at 11:47 am
Again, the point being that as soon as you logged off of SQL Server, something created a connection. You should have found out what that was...
March 27, 2012 at 11:46 am
djustice 20821 (3/27/2012)
ALTER DATABASE DB
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE
GO
DROP DATABASE db
GO
and the error that I got:
Msg 5064, Level 16, State 1, Line 1
Changes to...
March 27, 2012 at 11:39 am
SELECT mt1.col1,
mt1.col2,
mt1.b,
cnt.countInd
FROM #mytable1 mt1
...
March 27, 2012 at 11:31 am
Just guessing... but did you put the database into single user using the query window, then try to delete the database by right-clicking on it and selecting delete? (2 connections;...
March 27, 2012 at 11:23 am
S_Kumar_S (3/27/2012)
Using cast or convert won't make any differencr performance wise.
That's not true...
March 27, 2012 at 10:48 am
How long does it take to just execute your cte portion?
SELECT --COUNT(*)
j.NameIDRef
, 0 AS SEQNUM
, ADR.GASTR# AS PREMISE
, A.PnxCodeValue AS PREFIX
, ADR.GASNAM AS STREETNAME
, B.PnxCodeValue as STREETTYPE
, ADR.GASQLF AS APTNO
,...
March 27, 2012 at 10:47 am
Find out what is using that process before doing anything and find out why it is still accessing the database.
March 27, 2012 at 10:30 am
Why are you trying to open that? The maintenance plan can be edited in SSMS.
Are you trying to do this on a client computer or the server? Your statements are...
March 27, 2012 at 10:29 am
Ok, now you just set all rows = 0 for seqnumber, and then you filter on that. Why? Take out that column in the cte and take out the...
March 27, 2012 at 10:27 am
Viewing 15 posts - 1,306 through 1,320 (of 2,647 total)