Viewing 15 posts - 1 through 15 (of 23 total)
I would have thought that the following would work
DECLARE @cmd VARCHAR(2048);
SET @cmd = 'bcp "[Staedion Test].[dbo].[myTestNativeData]" out "C:\myTestUniNativeData-N.csv" -N -T -t","';
EXEC master..xp_cmdshell @cmd
In other words, since the dbtable parameter...
August 31, 2010 at 10:12 am
I recall an internsive software development project where the under-qualified and inexperienced junior developer proved very valuable.
Firsly, he could complete the simple modules I assigned to him.
But, even more importantly,...
August 26, 2010 at 10:55 am
At the moment, your SqlCommand object doesn't know about your SqlParameter object.
You need a line
command.Parameters.add(param);
between your 2 using statements.
But, 'Welsh Corgi' is right to say that you should have at...
February 15, 2010 at 9:23 am
I used the SQL Developer Migration tool and it does pretty well.
Migrating table definitions and data was certainly OK.
It certainly attempts to migrate Stored procedures, functions etc and does use...
January 5, 2010 at 4:29 am
You're right Pablo, I'm wrong (= I don't reflect reality) :blush:.
Double quotes do work around the reserved words.
Single quotes and square brackets do not work. I must have given up...
November 16, 2009 at 4:24 am
Having faced the same problem, I concluded that you just cannot use ORACLE reserved words for column names etc.
Brackets, quotes etc do not help.
Lower/upper case is irrelevant. By default, names...
November 12, 2009 at 8:40 am
A small correction ...
declare @ThisDate datetime;
set @ThisDate = getdate();
select
getdate() as CurrentDateTime,
dateadd(mm, datediff(mm, 0, @ThisDate) + 1, 0) as BeginningOfNextMonth, -- Beginning of...
September 2, 2009 at 7:31 am
The technical issues are well thought out but I hope that you won't mind if I point out a couple of key spelling mistakes.
The word is delimiter and not...
August 18, 2009 at 2:48 am
Thank you Paul and Doug for your responses.
As Paul said, I was wrong when I stated that schemas do not contain stored procedures.
I suspect tablespaces are irrelevant to my...
August 12, 2009 at 11:06 am
Stirring stuff, peter.house, for the humour slot.
Martin
July 6, 2009 at 2:01 am
Quite right, Randy (and you don't need the DECLARE statement).
The OP asked about populating a SP variable but, as you say, he could satisfy the requirements without doing so.
But the...
June 17, 2009 at 9:38 am
You can replace
set @Activity_Title = (SELECT title FROM other_table WHERE unique_ID = @variable_4_from_CRM)
with
select @Activity_Title = title FROM other_table WHERE unique_ID = @variable_4_from_CRM
Note that if the SELECT statement did return...
June 16, 2009 at 7:45 am
metalink.oracle.com seems to be available only if you have an ORACLE support contract.
The great plus point about this SqlServerCentral site is the number of people willingly giving their expertise....
June 4, 2009 at 8:21 am
Returning to the original question.
I suspect that there's a level of error-checking performed when a batch of commands are submitted and parsed by SQL Server. This happens before any of...
April 27, 2009 at 7:41 am
Viewing 15 posts - 1 through 15 (of 23 total)