Viewing 15 posts - 316 through 330 (of 920 total)
AKKKKK!!! Too slow, and Lynn's solution is better.
June 8, 2012 at 2:49 pm
How about:
create table #tablea (
ta_id int not null,
bname varchar(20) not null)
create table #tableb (
customer varchar(20) not null,
c_date date not null,
ta_id int not null)
insert #tablea ( ta_id, bname) values (1,'Nasdaq')
insert...
June 8, 2012 at 2:47 pm
This is the same thing Lynn is asking for on the other thread. Please don't double post.
Replies should go here:http://www.sqlservercentral.com/Forums/Topic1313354-391-1.aspx
June 8, 2012 at 1:48 pm
For homework help, the standard on the forum has usually been that you should give it a try first and then ask for help where you get stuck.
But a couple...
June 8, 2012 at 1:38 pm
BCP is the command line bulk insertion utility. It can be called like any other OS command line executable in SSIS or a batch file. If you can pull the...
June 8, 2012 at 1:29 pm
I'd look at either BCP or Bulk Insert for this. It would be a lot faster also. Where is the data coming from?
June 8, 2012 at 1:22 pm
The sql I sent you should do that. Did you try it?
June 8, 2012 at 1:19 pm
Also, it looks like you're using a SQL Server 2000 client to connect to a 2008R2 server. That should probably be upgraded to the SQL Server 2008 Native Client....
June 7, 2012 at 2:13 pm
Give this a try:
SELECT S.value('(@applicationId)[1]', 'int') AS ApplicationID,
S.value('(@startTime)[1]', 'time') AS StartTime,
S.value('(@startDate)[1]', 'date') AS StartDate,
S.value('(@direction)[1]', 'varchar(max)') AS Direction,
S.value('(@token)[1]', 'varchar(max)') AS Token,
S.value('(@bridged)[1]', 'varchar(max)') AS Bridged,
S.value('(@callerId)[1]', 'bigint') AS CallerId,
S.value('(@sessionId)[1]', 'varchar(max)') AS SessionId,
S.value('(outboundDialString/@dialString)[1]',...
June 7, 2012 at 1:58 pm
When run from SQL Server, the batch file executes under the credentials of the service account under which the SQL Server runs, not your id. Make sure that the...
June 6, 2012 at 4:02 pm
First thing you might look for is if the delimiter you've picked is showing up in the data itself and not just between columns. That's the most common cause...
June 6, 2012 at 11:41 am
There are lots of things that can change the order in which data is retrieved. The only way to guarantee a certain retrieval order is with an 'order by'...
June 6, 2012 at 11:32 am
Normally, you'd do this kind of formatting in the front end, not in tsql. But this might help
declare @x decimal(12,2)
declare @z varchar(50)
declare @y int
set @x = 61.13
set @z...
June 6, 2012 at 10:09 am
My understanding was that, if the server is connecting to an internet web server ( as opposed to something internal) you can't use the CAL licensing model. You have...
June 5, 2012 at 4:25 pm
And just to clarify...
It's always better if, when asking questions, you post DDL for all the objects concerned, some sample data in a form that will be easily inserted into...
June 5, 2012 at 3:55 pm
Viewing 15 posts - 316 through 330 (of 920 total)