Viewing 15 posts - 2,746 through 2,760 (of 3,738 total)
sqlquest2575 (7/5/2011)
July 6, 2011 at 1:25 pm
sales 77914 (7/4/2011)
I actually used a pipe on your suggestion even thought I knew there were no commas in the city names
Yes but you will often encounter commas in text...
July 5, 2011 at 2:50 pm
Are you referring to the 64 bit edition?
July 5, 2011 at 11:26 am
Thats great that you solved it.
Adding break points, using the Immediate, Locals & Watch Windows and stepping through you code make it easier to debug your code. 🙂
July 5, 2011 at 7:27 am
xXShanXx (7/5/2011)
is it possibe on triggers to directly insert into the remote tables ?
Yes you can but you have to enable cross database ownership chaining which is a security...
July 5, 2011 at 7:19 am
Good deal.
Try using a delimiter another than ",".
You can use "|" but I had a situation where someone placed a Pipe in the text which caused the job to fail.
So...
July 4, 2011 at 8:26 pm
xXShanXx (7/4/2011)
I have to call the stored procedures and i have to populate it on a temp table and my stored procedure will access the temp table
can any...
July 4, 2011 at 8:10 pm
xXShanXx (7/4/2011)
HiThanks for your reply
I am not familiar with Inline functions.
I have to run the stored procedures when ever the data gets inserted on audit table.
Regards
I'm not sure...
July 4, 2011 at 7:22 pm
CREATE TABLE CITIES (
ccode varchar(200) NULL,
[city] [varchar](100) NULL,
[rcode] varchar(200) NULL,
[iguid] [uniqueidentifier] NULL,
[uguid] [uniqueidentifier] NULL,
[rguid] [uniqueidentifier] NULL
)
Conternts of TxtFile3.txt
ad,Aixàs,06,,,
ad,Aixirivali,06,,,
ad,Aixirivall,06,,,
ad,Aixirvall,06,,,
ad,Aixovall,06,,,
ad,Andorra,07,,,
ad,Andorra la Vella,07,,,
ad,Andorra-Vieille,07,,,
ad,Andorre,07,,,
ad,Andorre-la-Vieille,07,,,
ad,Andorre-Vieille,07,,,
ad,Ansalonga,04,,,
ad,Anyós,05,,,
bulk insert cities
from 'C:\SSIS\TxtFile3.txt'
with
(
fieldterminator = ',',
ROWTERMINATOR = ''
)
(13 row(s) affected)
SELECT *...
July 4, 2011 at 7:12 pm
I would recommend using a pipe "|" for your row terminator. If you have a comma in your text it messes up the load.
You row terminator is not being recognized.
HTH.
July 4, 2011 at 6:38 pm
There is a syntax error with your CREATE TABLE Statement.
Also you have a syntax error on your Terminators of your Bulk Insert.
July 4, 2011 at 6:29 pm
A training video on setting Database Mail. The volume is not very good.
Perhaps you missed something.
http://sqlserver-training.com/database-mail-sql-server-2008-video-tutorial/
July 4, 2011 at 11:30 am
Coolroof (7/4/2011)
http://www.codeproject.com/KB/database/SQLServer2008DatabaseMail.aspxi have followed this steps but i can't run attach mail..
I'm not positive what you mean for it could be interpreted different ways?
Can you send an email without an...
July 4, 2011 at 9:27 am
It would be a combination of the entities and the logic to track the quantity on Hand, etc.
July 3, 2011 at 4:01 pm
Viewing 15 posts - 2,746 through 2,760 (of 3,738 total)