DTS -- Local Package Or File?

Jan 25, 2001

I have a fairly large DTS package which processes a large amount of data and outputs it to a series of tables. Currently I am saving the package as a local package, but I want to save it as a file to make migrating to different servers easier for the people who will be moving it. My question is, Can I run the package as a file without saving it as a local package on the server? And if so, are there any good examples of how to do it out there?

View 1 Replies


ADVERTISEMENT

SQL 2012 :: How To Fetch Single File From Local Path Using SSIS Package

Nov 14, 2014

I have 15 Dealers files .With the Files name as follows

1. ''ACTEST00001_20141112_0408_INV.TXT''

2. ''ACTEST00002_20141112_0408_INV.TXT''

I will get these files through FTP on Daily basis with changes on date alone.

I will have 4 files for each dealers.like INV,SERVICE,SALES,APPOINTMENT.

SO i need to fetch a particular dealer with particular date.

I need to create this scenario in SSIS package. How to create this and what are all the Tasks i need to use to implement this process.

View 1 Replies View Related

Script Task To Compare File From FTP With File On Local Archive Behaved Strangely!

May 9, 2008

In my script task I have the following code. The task I'm trying to accomplish is:
If the filename on FTP can be found in the local archive folder of e: drive then show message "FileAlreadyThere" (I will ultimatley change it to do nothing); if the filename on FTP cannot be found in the local archive folder of e: drive then transfer the file to the local package folder on d: drive.

While the script task is executing I was watching it closely, but the problem i saw is that:
If some files on FTP are already in local archive folder and some are not, then it the files which are already in the archive folder are dumped to the package folder; then after that the files which are not in the archive folder are then dumped to the package folder. But I only want the new files on FTP to be transferred to the package folder for further processing.

Then after this is finished, I saw all the files in the package folder are refreshed one after another, after the first round of refresh the second round starts, after the second round finishes it then stopped. I saw it refreshes itself because the 'Date Modified' of the file changes. And I saw the script task turned green.

I don't see how the code below produced this result. Something is wrong in the logic of the loop? Anyone has any idea why it's behaving the way it is now? And how to change the code to accomplish what I want? Thanks a lot!!

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Imports System
Imports System.IO
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Public Class ScriptMain
Public Sub Main()
Dim cm As ConnectionManager = Dts.Connections.Add("FTP")
cm.Properties("ServerName").SetValue(cm, "ftp2.name.com")
cm.Properties("ServerUserName").SetValue(cm, "username")
cm.Properties("ServerPassword").SetValue(cm, "password")
cm.Properties("ServerPort").SetValue(cm, "21")
cm.Properties("Timeout").SetValue(cm, "0")
cm.Properties("ChunkSize").SetValue(cm, "1000") '1000 kb
cm.Properties("Retries").SetValue(cm, "1")
Dim ftp As FtpClientConnection = New FtpClientConnection(cm.AcquireConnection(Nothing))
ftp.Connect()
ftp.SetWorkingDirectory("/directory")
Dim fileNames() As String
Dim folderNames() As String
ftp.GetListing(folderNames, fileNames)
If fileNames Is Nothing Then
MsgBox("NoFileOnFTP")
Else
Dim fileName As String
For Each fileName In fileNames
If File.Exists("c: emp" + fileName) Then
MsgBox("FileAlreadyThere")
Else
ftp.ReceiveFiles(fileNames, "c: emp", True, True)
End If
Next
End If

ftp.Close()
End Sub
End Class

View 3 Replies View Related

Dts Package (local) And Scheduling

May 23, 2001

hello

I have the following problem with a local dts package which I created with a domain adminuser (domainadmdba) and runs ms oledb for oracle to execute access for a oracle database. thereafter the data fills up into a sqlserver table, this runs as local package perfectly. if i place the package into the scheduler and run the dts-job with an another domain user (domainsrv_sql=service account) i get connecting problems. the service account (domainsrv_sql) has sysadmin right in sqlserver and local administrator right on the operating system. which right must the service account possess, so that he has the necessary right to execute this dts package?

single dump from the log file:

with admdba:

The execution of the following DTS Package succeeded:

Package Name: DTS__000000006
Package Description: Import CUSPERS from ZMA
Package ID: {E13C874F-4ABF-11D5-92A4-0008C70D8D6E}
Package Version: {768B2A40-4ECE-11D5-92A4-0008C70D8D6E}
Package Execution Lineage: {9FCF25E5-4ED1-11D5-92A4-0008C70D8D6E}
Executed On: xxxZS270
Executed By: ADMDBA
Execution Started: 22/05/2001 6:44:58 PM
Execution Completed: 22/05/2001 6:45:09 PM

Package Steps execution information:

Step 'Delete from Table [HELPDESK].[dbo].[cuspers] Step' succeeded
Step 'Copy Data from Results to [HELPDESK].[dbo].[cuspers] Step' succeeded

with srv_sql

The execution of the following DTS Package ?succeeded?:

Package Name: DTS__000000006
Package Description: Import CUSPERS from ZMA
Package ID: {E13C874F-4ABF-11D5-92A4-0008C70D8D6E}
Package Version: {768B2A40-4ECE-11D5-92A4-0008C70D8D6E}
Package Execution Lineage: {AF7B9D41-4ECF-11D5-92A4-0008C70D8D6E}
Executed On: xxxZS270
Executed By: SRV_SQL
Execution Started: 5/22/01 6:30:00 PM
Execution Completed: 5/22/01 6:30:00 PM

Package Steps execution information:

Step 'Delete from Table [HELPDESK].[dbo].[cuspers] Step' succeeded
Step 'Copy Data from Results to [HELPDESK].[dbo].[cuspers] Step' failed

Step Error Source: Microsoft Data Transformation Services (DTS) Package
Step Error Description:Unspecified error
(Microsoft OLE DB Provider for Oracle (80004005): The Oracle(tm) client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 (or greater) client software installation.

You will be unable to use this provider until these components have been installed.)
Step Error code: 80074005
Step Error Help File:sqldts.hlp
Step Error Help Context ID:1100

Thanks for any help !

Greets Indio

View 1 Replies View Related

Running Local Package

Jan 7, 2003

Is there a way to run a local package from a stored procedure?

Thanks,
Ken Nicholson

View 2 Replies View Related

Saving DTS As Local Package

May 13, 2002

I'm getting errors from time to time saving DTS changes as local package. I'm using SQL 2000. I've got sysadmin role.

I know there were DTS package ownership bugs in SQL 7 - but I thought these had been cleaned up with the latest SP.

Any suggestions would be appreciated.

View 2 Replies View Related

DTS Local Package Runs But Not Its Scheduled Job

May 11, 2000

I have a Local DTS Package that I created that runs fine. I have scheduled it to run daily but it errors out when run it from the agent. This is an excerpt of the error from the Job history.

Delete from Table [Intranet].[dbo].[Employees] Step, Error = -2147217887 (80040E21)

This Local DTS Package, deletes the records in the file and reimports the data from an AS400 file that is recreated for me daily.

The only thing that has occured to me so far is that perhaps the SQL Agent Service Account needs permission to delete the records. (I'm using NT Security).

Am I on the right track or do you think it's something else?

View 1 Replies View Related

Error When Trying To Schedule A Local DTS Package.

Mar 12, 2000

Hi all...

Error when trying to schedule a local DTS package.

Package Error message is...

Microsoft SQL-DMO (ODBC SQLState 42000]
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '(null)'.
Reason: Not associated with a trusted SQL Server connection.

Can anyone help please...

Thank you in advance

View 1 Replies View Related

How To Read The Content Of DTS Local Package?

Nov 8, 2004

I create a local package in DTS a few months ago. And set a schedule to run daily. Now i need to modify. How to read the content of DTS local package? i try to right click the package in job, and edit, but i didn't see the content. How can i see it and modify. Why mine can't be read? Thanks.

View 4 Replies View Related

How To Copy Database And Local Package?

May 16, 2007

Hi All,



I am new to sql server and the database concepts and just started learning. I want to copy a database and local package from a old sql server to a new server. can anybody guide me with the steps? I am very new to this field so if you could give me detailed steps i would very much appreciate it.



thanks in advance,

View 4 Replies View Related

Printing Source Code From A Local Package

Sep 20, 2000

Is there a way to print the source code from the local package. I know you can go in the source and cut and paste it into a word document. I was wondering if there was a way to do it when you are in designing the package so that it would print all the source codes of SQL statments/queries.

View 1 Replies View Related

Schedule Local Package To Perform FTP And DB Restore

Jul 20, 2005

Hi,Did anyone successfully set up a local package to first ftp a db.bakand second perform an automated db restore?I need to perform an automated task, which ftp nightly backup file toanother server and then restore onto a database and leave the databasein read-only mode for additional transaction logs restore during theday.Can someone help and provide the procedures on how to do that?Thanks in advance.

View 1 Replies View Related

How Can I Run A SSIS Package With Using A Local Windows Account ?

Mar 23, 2007

Deal All:

I have got a strange problem on runing SSIS package, please help me.

The package contains a Script Task which function is downloading files from a SFTP server with using psftp command line application. It will run successfully with using dtutil.exe and as a job with using a ssis execute proxy(domian account as credential), but fail runing the package as a job with using a ssis execute proxy(local windows account as credential, although has Administrator permission).

It seems a permission problem, but I try a lot and can't solve it.

Would you kind give me some suggestion ?

Thanks a lot.

Tomorrow

View 4 Replies View Related

Spurious Errors With Package Execution On Local Machine

Jan 5, 2007

I am having strange errors with a package when running locally that has not been an issue before.

The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below.

Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange.

App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below.

Below is the error message, can someone help me decrypt it?

Many thanks,

Rick

Error: 0xC0202009 at DFT_LoadProcessUnits, OLE_SRC_VLD_PROC_TDV_RESULT [1]: An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

".

Error: 0xC0047038 at DFT_LoadProcessUnits, DTS.Pipeline: The PrimeOutput method on component "OLE_SRC_VLD_PROC_TDV_RESULT" (1) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "SourceThread3" has exited with error code 0xC0047038.

Error: 0xC0202009 at DFT_LoadProcessUnits, OLE_SRC_DimEntities [199]: An OLE DB error has occurred. Error code: 0x80004005.

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Protocol error in TDS stream".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: An existing connection was forcibly closed by the remote host.

".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Communication link failure".

An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "TCP Provider: The specified network name is no longer available.

".

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread1" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047038 at DFT_LoadProcessUnits, DTS.Pipeline: The PrimeOutput method on component "OLE_SRC_DimEntities" (199) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread3" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread4" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread1" has exited with error code 0xC0047039.

Error: 0xC0047039 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0047039.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "SourceThread0" has exited with error code 0xC0047038.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread3" has exited with error code 0xC0047039.

Error: 0xC0047021 at DFT_LoadProcessUnits, DTS.Pipeline: Thread "WorkThread4" has exited with error code 0xC0047039.

Information: 0x40043008 at DFT_LoadProcessUnits, DTS.Pipeline: Post Execute phase is beginning.

Information: 0x402090DF at DFT_LoadProcessUnits, OLE_DST_FactResults [2076]: The final commit for the data insertion has started.

Information: 0x402090E0 at DFT_LoadProcessUnits, OLE_DST_FactResults [2076]: The final commit for the data insertion has ended.

Information: 0x40043009 at DFT_LoadProcessUnits, DTS.Pipeline: Cleanup phase is beginning.

Information: 0x4004300B at DFT_LoadProcessUnits, DTS.Pipeline: "component "OLE_DST_FactResults" (2076)" wrote 0 rows.

Task failed: DFT_LoadProcessUnits

View 16 Replies View Related

SQL Server 2012 :: Local SSIS Package Run And Export Data Except In Job

Jun 23, 2014

Using server 2012 on local machine, I created an SSIS package that will execute in integrated services and Visual Studio solution but will not work when creating a job. Other solutions work well except when exporting data. The program pulls data from query and exports into .csv file. The messages I get are -

Data flow task 1:error:destination- Stage.csv failed the pre-execute phase and returned code 0xC020200E
and
Data flow task 1:error:Cannot open the datafile "pathStage.csv".

Version-
Microsoft SQL Server Management Studio11.0.3128.0
Microsoft Analysis Services Client Tools11.0.3128.0
Microsoft Data Access Components (MDAC)6.1.7601.17514
Microsoft MSXML3.0 6.0
Microsoft Internet Explorer9.11.9600.17041
Microsoft .NET Framework4.0.30319.18444
Operating System6.1.7601

View 1 Replies View Related

Passing The Xml Configuration File To The Package As An Input Parameter While Executing The Package

Feb 2, 2007

Hi,

I am planning to develop a single package that will download files from ftp server, move the files to internal file server and upload it in the database. But I want to run this package for multiple ftp file providers. For each provider the ftp server might be different and the transformation to upload the files into a database table might be different.

So can I create a single package and then multiple configuration files (xml), which will contain the details fo the ftp file providers and then pass the xml file as a parameter while executing the package. The reason being that the timings of fetching the files is different for each ftp file provider and hence cannot be combined into one.

Is this possible?

Thanks for your help.

$wapnil

View 6 Replies View Related

Renaming A Local File

Jan 7, 2004

Suppose I have an Excel file in D:Test with the name a.xls.
Can I rename that excel file from QA of SQL SERVER in the same location or any other location?
Subhasish

View 2 Replies View Related

Configure A Child Package To Use The Configuration File Of A Parent Package?

Sep 14, 2006

Hi guys,

Here's the deal. I have a child package, (say, pack01.dtsx), which uses a dtsconfig file for its connection string, which can be called from other packages, but which also can be called by itself.

However I also have another package (say, pack02.dtsx) which uses the same dtsconfig file for its connection string. It calls on pack01.dtsx.

When I use DTEXECUI and run pack01.dtsx, specifying the proper .dtsconfig file, it goes well. But when I try and run pack02.dtsx, an error occurs saying pack01.dtsx connection cannot be established.

How do I pass the connectionstring being used by pack02 to pack01, without having to remove the configuration file setting of pack01? Can a Parent Package configuration and a configuration file try and map to the same property?

Hope someone could help. Thanks.

View 7 Replies View Related

SQL Output A XML File To My Local Machine

Mar 17, 2008

Hi, i wondered if anyone could help me with my stored procedure.
It updates a table with users messageboard and saves the Title, Line 1, Line 2 and so on into a XML thats stored in the column named XML_Data.

How can i then output this xml to a file on my local machine?



T-SQL :-

ALTER PROCEDURE [dbo].[prUpdateMessageBoardVetted]

(PARAMS GO HERE)

UPDATE CustomerData
SET Title = @Title,

Line1 = @Line1,
Line2 = @Line2,

Line3 = @Line3,
Line4 = @Line4,

Line5 = @Line5,
Line6 = @Line6,

XmlFileName = @XmlFileName,
FlashFileName = @FlashFileName,

HtmlFileName = @HtmlFileName,
Vetted = @Vetted,

ClientName = @ClientName
WHERE

(UserRef = @original_UserRef)

END

BEGIN

IF @Vetted = 1

DECLARE @xmlData AS XML

SET @xmlData = (SELECT
UserRef,

Title,

Line1,

Line2,

Line3,

Line4,

Line5,

Line6

FROM dbo.CustomerData
WHERE (UserRef = @original_UserRef) FOR XML RAW('Message'), ELEMENTS)

SELECT @xmlData


UPDATE [dbo].[CustomerData]
SET

XML_Data = @xmlData
WHERE

(UserRef = @original_UserRef)



(THEN HERE DO SOME SORT PROCEDURE TO OUTPUT @xmlData to a XML FILE ON MY LOCAL MACHINE,

BUT ALSO NAME THE XML FILE VIA @XmlFileName BY DOING SOME SORT OF CONCANTENATION)

any ideas?

Thanks in advance !



Neil

View 1 Replies View Related

I Can't Connect To My Local Database.mdf File

Feb 26, 2007

I have just upgraded to Microsoft SQL Server 2005 Express Edition with Advanced Services SP2.

Now I can't connect to my local database.mdf file.

When trying to open or doubleclick or expand my .mdf file the following message pops up:

Generating user instances in SQL Server is disabled. Use sp_configure 'user instance enabled' to generate user instances.

What is the solution for this problem?

View 4 Replies View Related

Creating Report On Local XML File

Jan 4, 2007

Hey All,

 

I am attempting to create a report on SQL Reporting Services that uses a local XML file as its datasource.  Although i did not find a way to directly do this, I found an MSDN article that walks a person through on how to use a report parameter to paste in your XML data from the page.  When I set up the report in this way, I get an "Invalid URI" error when I go to the preview tab.

http://msdn2.microsoft.com/en-us/library/aa964129.aspx

What would be the best way for me to use an XML file as a datasource using reporting services?  Is there a way that I can use a local file and use a parameter to point at that file? 

 

Any info, links, tuts, etc. would help.  Thanks!

Nathan

View 1 Replies View Related

Get Local Machine Name In MSDE Setup .bat File

Nov 5, 2003

I have the following command in a .bat file

osql -E -S localhost sp_grantlogin 'GREGASPNET'"

What I would like to do is replace GREG with the name of the local computer this .bat file is being run on.

Is there any string for this... i.e [LOCALMACHINE]ASPNET or something like that?

Greg

View 1 Replies View Related

How Can I Connect OWC PivotTable To A Local Cube File?

Aug 4, 2004

:eek:

I want to use the Office Web Components (v10) PivotTable embedded in a web page. The examples and tutorials I've been able to find on MSDN all use the same architecture: The initial pivottable configuration is created by instantiating the object server-side and programmatically configuring it. The XMLDATA property is then read and sent to the client. At the client, script sets the XMLDATA property. So far so good, all makes sense. Then my problem: The PivotTable is then connected to Analysis Server using an http connection string (through IIS). As my users do not have database accounts, only application accounts, I cannot allow database connection information on the client. Trouble is, the PivotTable generates MDX queries when a user reconfigures the view, and there are no hooks (events or other means) to programmatically obtain the generated MDX query - a fact that is explicitly confirmed in MSDN documentation.

This clearly means that the PT must be connected directly to it's data source. So I thought I could just create a local MOLAP cube file and download it to the client (permissible as it runs as a trusted application). But nowhere can I find any example or documention on how to do this.

This is driving me slightly insane and I have little hair left now; if anyone knows how to do it or where to find proper PivotTable documentation (rather than a collection of examples that do something else from what I need to do!) then help is greatly :p appreciated!

Dag

View 1 Replies View Related

Accessing Script File On Local Computer

Apr 13, 2004

I am trying to create a sproc creates several tables, views, and sprocs across several similar DBs (please...no lectures on structure...I didn't create this multi-DB setup) .

My sproc loops through the DBs and runs a script on each DB. I am running the Sproc from a client computer and cannot easily access the c drive on the SQL server.

The only way I have figured out how do do this is to run the following

xp_cmdshell 'isql d- %@mydb% i- c:script.sql'

inside a loop.

My problem is that xp_cmdshell refers to the server c drive instead of my local c drive, where my script file is.

Is there a way to refer to my local c drive? Also any thoughts on a better way to approach this (other than running the entire script inline in the sproc since I don't want to have to run quotes around each batch of the script).


Thanks

View 2 Replies View Related

Local Storage In Client's Machine In .sdf File

Apr 2, 2008



How to create a db in clients local machine with sql server ce and .net?Is any sample applications available?so,that later i can sync the data to the sql server db.
Please help.I am new to sql server ce.

View 3 Replies View Related

How To Retrieve Most Recent File From Local Directory?

May 30, 2007

Hi,



Here's my situation. Every day I will be downloading extracts to a folder. The extracts are named:



20070529.Extract1.csv

20070528.Extract1.csv

20070527.Extract1.csv

20070529.Extract2.csv

20070528.Extract2.csv

20070527.Extract2.csv



So, on any given day, I will want to find the most recent versions of Extract1 and Extract2, for example:

20070529.Extract1.csv & 20070529.Extract2.csv



How would I go about doing this?



Thanks much

View 12 Replies View Related

Analysis :: Writeback To Local Cube File Possible?

Nov 11, 2015

We are using a SSAS Server in order to analyse financial data. To create forecast scenarios, we would like to use the "what-if-analysis"-feature of Excel.  With this feature, data that was changed in Excel can be written back into the cube.

There are several data analyists who should be able to create scenarios on their own, that's why, each of them gets his own offline cube (a .cub file that is stored in the file system) whose data is extracted from the SSAS Server. 

Unfortunately, we found no way to write back data in these offline cubes. Due to the error message,  Excel failed to establish a connection to the external data source. Is there a way to writeback data to a local cube?

View 2 Replies View Related

How To Create A Report In SSRS From Local XML File

May 30, 2007

Hi

i need to create a Report from XML file which available in my current folder.

can anybody suggest How to create a Data source from XML file and How to make a query for that.



Thanks

Mahesh

View 8 Replies View Related

How To 'attach' An Existing .MDF File To The Local SQL Server

Jan 1, 2006

I have a data file, call it Data.mdf, that I am accessing through Visual Studio. It does not show up in SQL Server 2000 Enterprise Manager.

How can I get it assigned to, or imported into, the local server so I can manage it?

Thanks

Glen

View 6 Replies View Related

DB Connection From File Vs Local SQLServer Instance

Feb 12, 2007

I want to add a data source to a C# project that comes from a local SQLServer instance. But when I attempt to do a new connection, it only allows me to specify a file. That is, the only choices I have to select a data source type are "Access DB file" and "SQL Server DB file". I know that with the non-express VS edition there are more choices available. But reviewing limitations of express editions on the web, I find a frequent mention that one cannot access remote data, only a locally installed data source. But is not a SQL Server instance on my local machine a local data source?

This is an issue because if I proceed with connecting as a file, then VC#Express complains the file is in use. If I first go into SqlServer Expresss and detach the database there, then I can connect to it in VC#Express, but that is rather cumbersome!

So to put it another way, can I use this connection string...

Data Source=.SQLEXPRESS;Initial Catalog=testDB;Integrated Security=True

instead of this one?

Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory| estDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True

View 6 Replies View Related

Downloading Database To Local Mdf File, Sql Dumb On SMSE

May 28, 2007

Hi,
I'm trying to work on a database when I'm not connected. I can't figure out how to get a local copy of a database.mdf that I created on the server, onto my hard drive, using SQL Management Studio Express. Does anyone have any suggestions? I'd be forever in your debt. Thanks

View 1 Replies View Related

Change Authentication Method In A Local Database File

Apr 13, 2007

I have made a small asp.net project which uses a local database file as a part of the project. The project is running fine om my local machine, but when I upload it to the remote server, the login fails for the server.

I suspect this is can be solved by using sqlserver authentication. But I have now spent a lot of time trying to configure the database file to use this authentication mode. As I see it there are three possible solutions to the problem.



use management studio express to configure the local mdf file (Ecxept that I cant find out how to connect to the mdf-file) and from here change the authentication method to sqlserver authentication.
use Visual Web developer to change the authentication method (but how???)
make the windows authentication work on the server (this would probably require that mannamgement studio express connects to the remote database. (Same problem as no 1)

Help will be higly appreciated.





Bjarke

View 3 Replies View Related

How Do I Transfer Tables From Remote SQL Database To Local MDF File?

May 7, 2008

Hi all,

Currently, my (small) intranet site is storing it's data on a remote SQL server. The danger with this, as has happened several times now, is that the application is twice as vulnerable; if either the webserver or the dataserver malfunctions or is unreachable, the application won't work.

I only recently discovered the possibility to use local database files (MDF files), and this seems like a much better solution for my site. But now I want to transfer the tables that are residing on the dataserver, to the MDF file. The database only contains tables. How do I handle this? I do not have access to the dataserver, only to a few databases that are residing on it. Is this possible using Visual Studio 2008? I have read about a "Bulk Copy Program" (bcp) which is included with SQL Server, but I cannot find a download for just that application.

Or is this totally not the way to go? I've discovered MDF files are a bit more problematic with concurrent connections; having tables open in Visual Studio results in "Site offline" or "Cannot open database" error messages on the website. Problems I've never had to deal with using SQL Server, but they are only minor problems.

Thanks,
Peter

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved