Viewing 12 posts - 1 through 12 (of 12 total)
Finally,I could figureout this problem
EXEC sp_addlinkedserver
@server = 'QFODBCSRV',
@srvproduct = '',
@provider = 'MSDASQL.1',
@datasrc = 'QFODBC'
GO
Replaced provider 'MSDASQL' with 'MSDASQL.1'.
I have no logical answer why this worked.Even...
March 19, 2008 at 6:48 pm
The other DB which I am trying to link is not another SQL Server.Its not so popular 'QuickFill' DB.Its driver is not present in the provider list of the LinkedServer.
March 9, 2008 at 12:00 pm
Thanks for your reply Jack.
I posted 'SELECT TOP 10 ...' as just an example.It is happening for all the queries.
This is how I added new LinkedServer through my MSSMS
EXEC...
March 8, 2008 at 10:03 am
After little bit of 'googling',I could successfully connect to my ODBC
1.)Exec sp_addlinkedserver
EXEC sp_addlinkedserver
@server = 'MY_ODBC_SERVER',
@srvproduct = '',
@provider = 'MSDASQL',
@datasrc = 'QFTest' //System DSN
GO
2.)To check...
March 5, 2008 at 12:48 pm
Thanks for the quick replies.I am struck at this point.
I am running this command.It works perfect on the windows command line
bcp "select CUSTOMER_ID,Email1 from R4W_001.dbo.SYSCUST_AUDIT where Email1='abc@sarasu.com'" queryout "C:\SoundPub\EmailList\durga2.csv" -T...
March 2, 2008 at 12:37 am
Appreciate all yours Inputs so far.I could successfully create .xls files on Date basis now.But the problem I am having currently is,I have to convert these .xls files into .csv...
March 1, 2008 at 9:02 pm
My Bad.
The mistake what did was,I did not give 'exec' before the SP.
Declare @filename1 varchar(40)
Declare @filename2 varchar(255)
Declare @filedate varchar(40)
Declare @copyfile varchar(255)
set @filename1 = 'C:\SoundPub\Batch\durga.xls'
set @filedate = 'Date' + convert(varchar,getdate(),112)
set @filename2...
February 26, 2008 at 5:40 pm
After a little reading,I found out xp_commandshell would accomplish my task.Thanks for all your Inputs.But I am struck up at this point
Declare @filename varchar(40)
DECLARE @cmd VARCHAR(255)
set @filename = 'Date'...
February 26, 2008 at 1:29 pm
Thanks for the replies.
Faheem latif & VijayKrishna I am still not sure how BCP is going to dynamically generate excel files (On the Date basis).
Jeff,I am still trying to...
February 25, 2008 at 10:17 pm
Viewing 12 posts - 1 through 12 (of 12 total)