Viewing 15 posts - 10,381 through 10,395 (of 18,923 total)
Have you tried the 2nd version of the code (2nd link, 5th message).
You'll nothing that he is using set fmtonly on. I don't remember why exactly he used it but...
January 9, 2007 at 10:37 am
I would think you'd have to paste the character directly in the code... I can't seem to do something like :
ROWTERMINATOR = CHAR(10) + '\n'
I'll...
January 9, 2007 at 10:33 am
I just completed my previous answer... Does that clear it up for you?
January 9, 2007 at 10:25 am
I don't know what else to tell you...
this compiles fine on my computer :
select a.* into ##tmptesting FROM OPENROWSET('SQLOLEDB','ServerName;UID;PWD','sptest1 10,''Y''') AS a
But I have no way of executing it...
January 9, 2007 at 10:21 am
Well first read this in books online :
data types-SQL Server, precedence
Basically the server must convert the data when the 2 sides of the operations have different datatypes. The convert...
January 9, 2007 at 10:14 am
Open the file with notepad, highlight the character, then copy hit to the clipboard.
Go in query analyser and type this :
SELECT ASCII('
paste the character and type
')
Execute and you'll the...
January 9, 2007 at 10:08 am
Shouldn't be any trouble... they'll just have to make a 2nd connection string and use that string in a few pages... if the app is well coded it won't be...
January 9, 2007 at 9:52 am
Can you do a replace in the text file before importing??
Can you use a unicode text import (sorry but I don't know the real name of that option, just that...
January 9, 2007 at 9:50 am
I knew I was missing something... Check this version of the code... maybe that'll solve it :
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=92&messageid=99415#bm99871
January 9, 2007 at 9:49 am
Never had that problem. Have you tried " EXEC dbo.sptest1 10,'Y' "
I found this old thread but I'm not sure it's gonna be much use to you at this point...
January 9, 2007 at 9:47 am
DECLARE @demo TABLE (MyDate DATETIME NOT NULL PRIMARY KEY CLUSTERED)
INSERT INTO @demo (MyDate)
SELECT DATEADD(D, 1, GETDATE())
UNION ALL
SELECT DATEADD(D, -1, GETDATE())
UNION ALL
SELECT GETDATE()
SELECT MyDate FROM @demo
SELECT MyDate, GetDate() FROM @demo WHERE...
January 9, 2007 at 9:42 am
Select name from dbo.SysObjects WHERE XType = '1'
--0 row(s) affected
--perfectly normal
Select name from dbo.SysObjects WHERE XType = 1
--This crashes so bad that the execution plan is not even...
January 9, 2007 at 9:37 am
In case you missed that message?!?!
I'd really like to have those answers.
January 9, 2007 at 9:29 am
Can you print the @string command and post it here?
What error are you getting when executing?
January 9, 2007 at 9:24 am
Can we know the rest of the process? I'm not sure you are using the right tool for the job.
January 9, 2007 at 9:21 am
Viewing 15 posts - 10,381 through 10,395 (of 18,923 total)