Showing posts with label local. Show all posts
Showing posts with label local. Show all posts

Monday, March 19, 2012

how to create a sql database in the server?

Hi,

I want to create a new database in the server using SQL express,not in the local machine. so what can I do?

Thank you

hi,

databases are always created on the server machine and not in the eventual "remote clients"..

just perform a CREATE DATABASE dbName; statement

regards

|||thank you.
but I want to know where the location is after performing this statement: CREATE DATABASE dbName. in the server? Do I need to connect to the server using express first?
|||

hi,

dophine wrote:

thank you.
but I want to know where the location is after performing this statement: CREATE DATABASE dbName. in the server?

yes... traditionally in the

C:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\Data

folder...

Do I need to connect to the server using express first?

yes as no statement can be executed if not against a SQL Server instance...

regards

|||

HI,

as stated you may find it in Drive:\Program Files\Microsoft SQL Server\MSSQL\Data

and after login in SQL Server you may run sp_helpdb yourdbname , which will gives you detail of the data/log files .

Hemantgiri S. Goswami

|||

Hi all,

When I try to connect to the server using sql express, I cannot find the name of the server instance. So does it mean the sql express should be installed in the server?

Thank you

|||

Hi,

by dfault SQL Express creats named instance so your SQL Server's name would be yourpcname\sqlexpress. And to connect to SQL Server it must be installed in your system or another system on network to get connected.

Hemantgiri S. Goswami

|||

Hi

when I open the SQL express and browser the network servers, there are some server instances. That means the SQL can connect to the remote machine, right? However, I cannot find the server instance I want. And I try to connect to the server by typing the command in the command promt. The following message shown.

HResult 0x3, Level 16, State 1
Named Pipes Provider: Could not open a connection to SQL Server [3].
Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred w
shing a connection to the server. When connecting to SQL Server 2005
re may be caused by the fact that under the default settings SQL Ser
allow remote connections..
Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.

Thank you.

|||

HI,

Yes it can connect to remote machine but ensure that Remote Connections are enabled for Named Piped and TCP/IP under Surface Area Configuration ,

refer below KBs for more

http://support.microsoft.com/kb/905618 & http://blogs.msdn.com/sql_protocols/archive/2005/10/22/483684.aspx

HTH

Hemantgiri S. Goswami

|||

Hi,

I would like to know whether one of the causes of such error is that sql express is not installed in the network server side.

Thank you.

|||

hi,

this exception is always raised when a connection can not be established with the "target server", be it local or remote..

causes could be a mispelling of the instance name or incomplete name in case of named instance (ServerName\InstanceName), as long as additional network problems, or even the network protocols not being enabled for the remote instance...

obviously the computer you are connecting to has to have a SQL Server/SQLExpress instance installed...

regards

How to Create a Report in SSRS from Local XML File

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

Are you doing this in an application with ReportViewer in LocalMode? Or is this going to be a server-side app (where you're just using the XML file in your folder as a test file)?

The way to do it is different, depending on the answer to this first question... but in both cases I will have the followup question:

Is the XML file in a regular, table-like format (like Dataset XML), so that it will be easy to make into a datasource? Or is the schema different altogether?

>L<

|||

Hi thanks for ur reply

now we have chenged the way i need to prepare a report

One web service will return a DataSet

based on that Dataset i need prepare a report.

Thanks

Mahesh

|||

hi Mahesh,

That change doesn't really change anything about my first question, although it answers the second one<g>.

The way you are going to do this is still going to be different depending on whether the report is rendered server-side or client-side. Are you writing a web-application, a win-forms application, or what? Are you using the reportviewer client control?

If you need to send that dataset as a source to a server-side rendering of the report, you are still going to have to send that information as XML to the server. (But that will be easy because the dataset will turn itself into the "right kind" of XML for this purpose.) If you need to do this, we will discuss further.

If you are rendering the report using reportviewer, so you can use local report mode, then you can almost certainly give the localmode report your dataset without any trouble, and without turning it into XML first. In fact, if you *are* using XML, you load it into a dataset to give to the viewer control <s>.

Hope this helps

>L<

|||

Hi Lisa

Thanks for giving more information

I need to prepare a Server side Report .

with sql server 2005 we got One VS 2005 IDE in that i have taken Report Server Project Here am creating my reports.

for this they are given me a webservice link that will return a Data set

based on that i need to prepare a Report.

Previously i know how to prepare a report from Sql server Database.

Thanks.

Mahesh

|||

OK. If the webservice returns a dataset, then it returns it as an XML message. You should be fine with this in a server-side report.

Define the datasource as follows:

The DataSource is of type XML.
The connection string for the web service datasource is in fact the URL for the web service! (http://...) For testing you can put up a local copy of it (http://localhost/test/my.xml) and assign that as your datasource.
The query string, believe it or not, can just be "*". (no quotes) if the XML is a "raw" dataset style. You can also use the (bleh) element query syntax that they've specified -- see here http://technet.microsoft.com/en-us/library/ms365158.aspx -- If you get stuck, post an example of what the web service response message looks like and I'll try to help.|||

Hi

Lisa

i was struck with writing query

i got the webservice responce

<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="http://tempuri.org/">
- <xsTongue Tiedchema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urnTongue Tiedchemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Project">
- <xs:complexType>
- <xsTongue Tiedequence>
<xs:element name="ProjectUID" msdataBig SmileataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xsTongue Tiedtring" minOccurs="0" />
<xs:element name="ProjectName" type="xsTongue Tiedtring" minOccurs="0" />
</xsTongue Tiedequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xsTongue Tiedchema>
- <diffgrBig Smileiffgram xmlns:msdata="urnTongue Tiedchemas-microsoft-com:xml-msdata" xmlnsBig Smileiffgr="urnTongue Tiedchemas-microsoft-com:xml-diffgram-v1">
- <NewDataSet xmlns="">
- <Project diffgr:id="Project1" msdata:rowOrder="0">
<ProjectUID>8f584354-259b-48fb-a82b-838dd0d75a52</ProjectUID>
<ProjectName>Reports</ProjectName>
</Project>
</NewDataSet>
</diffgrBig Smileiffgram>
</DataSet>

In DataSet dialog Box i have taken a query

first i tried with "*" only it is showing error

an tried with this

<Query>
<SoapAction>
http://tempuri.org/GetAttributes
</SoapAction>
<Method Namespace="http://tempuri.org/"
Name="GetAttributes">
</Method>
</Query>

It is also not displaying the values of ProjectUid and ProjectName.

can u help me how to write the query for this type of WebService Responce.

Thanks

Mahesh

|||

Mahesh, I thought they were sending you a dataset -- is the method GetAttributes the way you are supposed to get that dataset or does it represent a query you are trying to do to get the metadata *describing* the dataset?

Either way... To use the dataset "raw", the thing you are receiving should look like, well, a serialized dataset, like you would get from a dataset if you used its .WriteXML() or .GetXML() methods. You can't use the "*" (I don't think) unless it looks like that. I can't remember what MS blog I read about this in -- it works, but it is only the simplest way.

It is not the only way. Here is a very quick walkthrough that you should find helpful for your scenario: http://blogs.msdn.com/bimusings/archive/2006/03/24/560026.aspx

Here is another walkthrough http://msdn.technetweb3.orcsweb.com/gsnowman/archive/2005/10/12/480321.aspx

And a blog entry that goes through it again http://blogs.msdn.com/bwelcker/archive/2005/11/13/492296.aspx

I think they both show you examples of query syntax.

Here is a tutorial about using XML as a datasource that will help you -- I'm pointing you at lesson 2, where you're learning how the web service is supposed to return the serialized data set but you probably want to look at all the lessons in this tutorial -- http://technet.microsoft.com/en-us/library/aa337489.aspx

Other references describing other aspects that I have found helpful.
http://technet.microsoft.com/en-us/library/aa964129.aspx
http://channel9.msdn.com/ShowPost.aspx?PostID=137650

>L<

How to Create a Report in SSRS from Local XML File

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

Are you doing this in an application with ReportViewer in LocalMode? Or is this going to be a server-side app (where you're just using the XML file in your folder as a test file)?

The way to do it is different, depending on the answer to this first question... but in both cases I will have the followup question:

Is the XML file in a regular, table-like format (like Dataset XML), so that it will be easy to make into a datasource? Or is the schema different altogether?

>L<

|||

Hi thanks for ur reply

now we have chenged the way i need to prepare a report

One web service will return a DataSet

based on that Dataset i need prepare a report.

Thanks

Mahesh

|||

hi Mahesh,

That change doesn't really change anything about my first question, although it answers the second one<g>.

The way you are going to do this is still going to be different depending on whether the report is rendered server-side or client-side. Are you writing a web-application, a win-forms application, or what? Are you using the reportviewer client control?

If you need to send that dataset as a source to a server-side rendering of the report, you are still going to have to send that information as XML to the server. (But that will be easy because the dataset will turn itself into the "right kind" of XML for this purpose.) If you need to do this, we will discuss further.

If you are rendering the report using reportviewer, so you can use local report mode, then you can almost certainly give the localmode report your dataset without any trouble, and without turning it into XML first. In fact, if you *are* using XML, you load it into a dataset to give to the viewer control <s>.

Hope this helps

>L<

|||

Hi Lisa

Thanks for giving more information

I need to prepare a Server side Report .

with sql server 2005 we got One VS 2005 IDE in that i have taken Report Server Project Here am creating my reports.

for this they are given me a webservice link that will return a Data set

based on that i need to prepare a Report.

Previously i know how to prepare a report from Sql server Database.

Thanks.

Mahesh

|||

OK. If the webservice returns a dataset, then it returns it as an XML message. You should be fine with this in a server-side report.

Define the datasource as follows:

The DataSource is of type XML.
The connection string for the web service datasource is in fact the URL for the web service! (/) For testing you can put up a local copy of it (http://localhost/test/my.xml) and assign that as your datasource.
The query string, believe it or not, can just be "*". (no quotes) if the XML is a "raw" dataset style. You can also use the (bleh) element query syntax that they've specified -- see here http://technet.microsoft.com/en-us/library/ms365158.aspx -- If you get stuck, post an example of what the web service response message looks like and I'll try to help.|||

Hi

Lisa

i was struck with writing query

i got the webservice responce

<?xml version="1.0" encoding="utf-8" ?>
- <DataSet xmlns="http://tempuri.org/">
- <xsTongue Tiedchema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urnTongue Tiedchemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Project">
- <xs:complexType>
- <xsTongue Tiedequence>
<xs:element name="ProjectUID" msdataBig SmileataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xsTongue Tiedtring" minOccurs="0" />
<xs:element name="ProjectName" type="xsTongue Tiedtring" minOccurs="0" />
</xsTongue Tiedequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xsTongue Tiedchema>
- <diffgrBig Smileiffgram xmlns:msdata="urnTongue Tiedchemas-microsoft-com:xml-msdata" xmlnsBig Smileiffgr="urnTongue Tiedchemas-microsoft-com:xml-diffgram-v1">
- <NewDataSet xmlns="">
- <Project diffgr:id="Project1" msdata:rowOrder="0">
<ProjectUID>8f584354-259b-48fb-a82b-838dd0d75a52</ProjectUID>
<ProjectName>Reports</ProjectName>
</Project>
</NewDataSet>
</diffgrBig Smileiffgram>
</DataSet>

In DataSet dialog Box i have taken a query

first i tried with "*" only it is showing error

an tried with this

<Query>
<SoapAction>
http://tempuri.org/GetAttributes
</SoapAction>
<Method Namespace="http://tempuri.org/"
Name="GetAttributes">
</Method>
</Query>

It is also not displaying the values of ProjectUid and ProjectName.

can u help me how to write the query for this type of WebService Responce.

Thanks

Mahesh

|||

Mahesh, I thought they were sending you a dataset -- is the method GetAttributes the way you are supposed to get that dataset or does it represent a query you are trying to do to get the metadata *describing* the dataset?

Either way... To use the dataset "raw", the thing you are receiving should look like, well, a serialized dataset, like you would get from a dataset if you used its .WriteXML() or .GetXML() methods. You can't use the "*" (I don't think) unless it looks like that. I can't remember what MS blog I read about this in -- it works, but it is only the simplest way.

It is not the only way. Here is a very quick walkthrough that you should find helpful for your scenario: http://blogs.msdn.com/bimusings/archive/2006/03/24/560026.aspx

Here is another walkthrough http://msdn.technetweb3.orcsweb.com/gsnowman/archive/2005/10/12/480321.aspx

And a blog entry that goes through it again http://blogs.msdn.com/bwelcker/archive/2005/11/13/492296.aspx

I think they both show you examples of query syntax.

Here is a tutorial about using XML as a datasource that will help you -- I'm pointing you at lesson 2, where you're learning how the web service is supposed to return the serialized data set but you probably want to look at all the lessons in this tutorial -- http://technet.microsoft.com/en-us/library/aa337489.aspx

Other references describing other aspects that I have found helpful.
http://technet.microsoft.com/en-us/library/aa964129.aspx
http://channel9.msdn.com/ShowPost.aspx?PostID=137650

>L<

Monday, March 12, 2012

How to create a Maintenance Plan and backup to multiple locations

Hi all,
Currently, I have a maintenance plan and it creates a complete backup to the
default backup directory on the local machine.
What should I do if I also want to back up the database to another
machine/share drive on the same domain? Do I need to create a new
maintenance plan just for that? Could this create unnecessary performance
hit on the SQL Server?
Or could I go directly to the SQL job and modify the script so that it can
back up to multiple locations? I don’t know how to do this or whether it
will work at all.
Sure I can create a NT backup to copy the database to another location. But
I really like the "Remove file older than..." feature on the maintenance
plan. Our database is pretty big and the currently backup mechanism faces
space issue without this "Remove file older than..." feature.
Any advice? And thanks in advance.
Abel Chan
You can send the backup file anywhere you want as long as the account that
SQL Server runs under has permissions to that share or folder. But with
SQL2000 you can not backup to two locations at once. SQL2005 gives you more
options in that area. It is rarely a good idea to backup to the default
directory since if that machine dies you loose botht he db and the most
current backup. You might want to think about backing up to a remote share.
Just use a UNC for the path in the MP wizard (or edit the job) and you
should be all set.
Andrew J. Kelly SQL MVP
"Abel Chan" <awong@.newsgroup.nospam> wrote in message
news:341680AD-9EF2-4574-9BF6-CE4E391DF2D8@.microsoft.com...
> Hi all,
> Currently, I have a maintenance plan and it creates a complete backup to
> the
> default backup directory on the local machine.
> What should I do if I also want to back up the database to another
> machine/share drive on the same domain? Do I need to create a new
> maintenance plan just for that? Could this create unnecessary performance
> hit on the SQL Server?
> Or could I go directly to the SQL job and modify the script so that it can
> back up to multiple locations? I don't know how to do this or whether it
> will work at all.
> Sure I can create a NT backup to copy the database to another location.
> But
> I really like the "Remove file older than..." feature on the maintenance
> plan. Our database is pretty big and the currently backup mechanism faces
> space issue without this "Remove file older than..." feature.
> Any advice? And thanks in advance.
> Abel Chan
>

How to create a Maintenance Plan and backup to multiple locations

Hi all,
Currently, I have a maintenance plan and it creates a complete backup to the
default backup directory on the local machine.
What should I do if I also want to back up the database to another
machine/share drive on the same domain? Do I need to create a new
maintenance plan just for that? Could this create unnecessary performance
hit on the SQL Server?
Or could I go directly to the SQL job and modify the script so that it can
back up to multiple locations? I donâ't know how to do this or whether it
will work at all.
Sure I can create a NT backup to copy the database to another location. But
I really like the "Remove file older than..." feature on the maintenance
plan. Our database is pretty big and the currently backup mechanism faces
space issue without this "Remove file older than..." feature.
Any advice? And thanks in advance.
Abel ChanYou can send the backup file anywhere you want as long as the account that
SQL Server runs under has permissions to that share or folder. But with
SQL2000 you can not backup to two locations at once. SQL2005 gives you more
options in that area. It is rarely a good idea to backup to the default
directory since if that machine dies you loose botht he db and the most
current backup. You might want to think about backing up to a remote share.
Just use a UNC for the path in the MP wizard (or edit the job) and you
should be all set.
--
Andrew J. Kelly SQL MVP
"Abel Chan" <awong@.newsgroup.nospam> wrote in message
news:341680AD-9EF2-4574-9BF6-CE4E391DF2D8@.microsoft.com...
> Hi all,
> Currently, I have a maintenance plan and it creates a complete backup to
> the
> default backup directory on the local machine.
> What should I do if I also want to back up the database to another
> machine/share drive on the same domain? Do I need to create a new
> maintenance plan just for that? Could this create unnecessary performance
> hit on the SQL Server?
> Or could I go directly to the SQL job and modify the script so that it can
> back up to multiple locations? I don't know how to do this or whether it
> will work at all.
> Sure I can create a NT backup to copy the database to another location.
> But
> I really like the "Remove file older than..." feature on the maintenance
> plan. Our database is pretty big and the currently backup mechanism faces
> space issue without this "Remove file older than..." feature.
> Any advice? And thanks in advance.
> Abel Chan
>|||Hi Andrew,
Thanks to your response. I took your suggestion and back up the database to
another media. :> I also found that I need to run the SQL server under a
domain account instead of Local System in order to use UNC path. Thanks
again.
Abel Chan
"Andrew J. Kelly" wrote:
> You can send the backup file anywhere you want as long as the account that
> SQL Server runs under has permissions to that share or folder. But with
> SQL2000 you can not backup to two locations at once. SQL2005 gives you more
> options in that area. It is rarely a good idea to backup to the default
> directory since if that machine dies you loose botht he db and the most
> current backup. You might want to think about backing up to a remote share.
> Just use a UNC for the path in the MP wizard (or edit the job) and you
> should be all set.
> --
> Andrew J. Kelly SQL MVP
>
> "Abel Chan" <awong@.newsgroup.nospam> wrote in message
> news:341680AD-9EF2-4574-9BF6-CE4E391DF2D8@.microsoft.com...
> > Hi all,
> >
> > Currently, I have a maintenance plan and it creates a complete backup to
> > the
> > default backup directory on the local machine.
> >
> > What should I do if I also want to back up the database to another
> > machine/share drive on the same domain? Do I need to create a new
> > maintenance plan just for that? Could this create unnecessary performance
> > hit on the SQL Server?
> >
> > Or could I go directly to the SQL job and modify the script so that it can
> > back up to multiple locations? I don't know how to do this or whether it
> > will work at all.
> >
> > Sure I can create a NT backup to copy the database to another location.
> > But
> > I really like the "Remove file older than..." feature on the maintenance
> > plan. Our database is pretty big and the currently backup mechanism faces
> > space issue without this "Remove file older than..." feature.
> >
> > Any advice? And thanks in advance.
> >
> > Abel Chan
> >
>
>

How to create a Maintenance Plan and backup to multiple locations

Hi all,
Currently, I have a maintenance plan and it creates a complete backup to the
default backup directory on the local machine.
What should I do if I also want to back up the database to another
machine/share drive on the same domain? Do I need to create a new
maintenance plan just for that? Could this create unnecessary performance
hit on the SQL Server?
Or could I go directly to the SQL job and modify the script so that it can
back up to multiple locations? I don’t know how to do this or whether it
will work at all.
Sure I can create a NT backup to copy the database to another location. But
I really like the "Remove file older than..." feature on the maintenance
plan. Our database is pretty big and the currently backup mechanism faces
space issue without this "Remove file older than..." feature.
Any advice? And thanks in advance.
Abel ChanYou can send the backup file anywhere you want as long as the account that
SQL Server runs under has permissions to that share or folder. But with
SQL2000 you can not backup to two locations at once. SQL2005 gives you more
options in that area. It is rarely a good idea to backup to the default
directory since if that machine dies you loose botht he db and the most
current backup. You might want to think about backing up to a remote share.
Just use a UNC for the path in the MP wizard (or edit the job) and you
should be all set.
Andrew J. Kelly SQL MVP
"Abel Chan" <awong@.newsgroup.nospam> wrote in message
news:341680AD-9EF2-4574-9BF6-CE4E391DF2D8@.microsoft.com...
> Hi all,
> Currently, I have a maintenance plan and it creates a complete backup to
> the
> default backup directory on the local machine.
> What should I do if I also want to back up the database to another
> machine/share drive on the same domain? Do I need to create a new
> maintenance plan just for that? Could this create unnecessary performance
> hit on the SQL Server?
> Or could I go directly to the SQL job and modify the script so that it can
> back up to multiple locations? I don't know how to do this or whether it
> will work at all.
> Sure I can create a NT backup to copy the database to another location.
> But
> I really like the "Remove file older than..." feature on the maintenance
> plan. Our database is pretty big and the currently backup mechanism faces
> space issue without this "Remove file older than..." feature.
> Any advice? And thanks in advance.
> Abel Chan
>

Friday, February 24, 2012

How to copy tables from local machine to remote SQL server

We currently have a PPTP connection set up for our developers to
access our development SQL server through a VPN tunnel. When they
need to copy tables up to the dev SQL from their local machine they
simply do a DTS copy.

However, we are now moving to a thin client solution where they will
be working on a terminal server. They will have access to the
development SQL servers and SQL tools such as EM and QA. However,
they will not have access to their local SQL server and, therefore,
will not be able to directly perform DTS copies. We have explored
several possibilities such as exporting tables to a .csv or .mdb file
and then importing them on the development SQL server but this is not
ideal because things are lost in that process (e.g. primary keys,
field names, data types, etc.)

My question is this: Is there a way to export and then import SQL
tables without losing dependent objects such as primary keys and data
types in the process? If any of you are working with a similar
situation I would really like to hear how your remote users copy
objects from their remote location to your SQL servers. Thanks!

Ryan

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/General-Dis...pict211310.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=722630I'm not sure how your developers will get their files to the server
(FTP?), but in any case they can easily create object definition
scripts from Enterprise Manager or Query Analyzer.

Assuming they're maintaining their SQL code in a source control system,
then they will be creating these scripts anyway. So they could recreate
(or perhaps just ALTER) a table with a script, then reload the data
from a csv file. Or perhaps make a copy of the original table, modify
it, insert the data from the copy, and then drop the copy.

If this doesn't help, you might want to clarify what the issue is -
problems creating scripts, running them etc.

Simon|||"Simon Hayes" wrote:
> I'm not sure how your developers will get their files to the
> server
> (FTP?), but in any case they can easily create object
> definition
> scripts from Enterprise Manager or Query Analyzer.
> Assuming they're maintaining their SQL code in a source
> control system,
> then they will be creating these scripts anyway. So they could
> recreate
> (or perhaps just ALTER) a table with a script, then reload the
> data
> from a csv file. Or perhaps make a copy of the original table,
> modify
> it, insert the data from the copy, and then drop the copy.
> If this doesn't help, you might want to clarify what the issue
> is -
> problems creating scripts, running them etc.
> Simon

Thanks for your reply.

The developers can copy files from there local hard drives via their
terminal server session. The problem is that they cannot use DTS to
copy SQL objects because there are firewalls between their local
machine and the terminal server.

It would be possible for them to script the table in EM and then use
bcp to insert the data but I was hoping for a simpler solution with
fewer steps involved. Some of the developers are not so SQL saavy and
Im afraid that we will get stuck supporting them. The extra time
spent on these activities will also give them an excuse to bill us for
more hours (they are contractors).

I have been testing the export of data to .csv and .mdb files and it
is not always straightforward to do. If anyone has any experience
with this your advice is very welcome. Thanks!

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/General-Dis...pict211310.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=723562|||Here's a workaround solution if you'd like.

1. Create a backup of the database you want to send to the SQL Server.
Let's say your DBName is Performer.
2. Restore as another database...Performer1
3. Delete the tables/other objects you don't want to move up.
4. Do another backup of Performer1...maybe into Performer1.bak
5. Upload it to Production.
6. Restore as Performer1.
7. DTS the tables over or if you simply need to move the data, DTS only
the data to the existing tables.

...and 8. Good luck :o)

Hope this helps,

-Umar Farooq.|||1.DTS out to disk the table(s) you need (using DTS for this is much less
prone to error than BCP)
2. Upload files to production
3. DTS Back in (once again DTS is easier than BCP)

To avoid foreign key confilicts you need to DTS any parent data in before
child data (if you need to move new tables you will need to script and copy
them and recreate at other end before loading data)

You can make the task completely automatic by doing steps 1 and 2 in a DTS
package locally, then do step 3 on production and pole for the files, only
upload when they are there an then delete them (or move them) when the
import is complete.

This will mean that your contractors do nothing or just initiate an automate
process.

Hope this helps
Julian

"Umar Farooq" <UmarAlFarooq@.gmail.com> wrote in message
news:1112753008.047280.36140@.o13g2000cwo.googlegro ups.com...
> Here's a workaround solution if you'd like.
> 1. Create a backup of the database you want to send to the SQL Server.
> Let's say your DBName is Performer.
> 2. Restore as another database...Performer1
> 3. Delete the tables/other objects you don't want to move up.
> 4. Do another backup of Performer1...maybe into Performer1.bak
> 5. Upload it to Production.
> 6. Restore as Performer1.
> 7. DTS the tables over or if you simply need to move the data, DTS only
> the data to the existing tables.
> ...and 8. Good luck :o)
> Hope this helps,
> -Umar Farooq.

Sunday, February 19, 2012

How to copy local sql express DB to remote full sql server 2005

Hi guys,

I am using Visual wev developper 2005 with sql server express 2005 and i have also sql server management studio express. it's all free now .

my web site is ready

I didn't have problem to upload my site to my hoster.

Now I want to upload all my tables and my stored procedure create locally with VWD express

How can i do it ?

thank's for your help

Hi all,

I have my all table on the remote server but it was very hard to.

let me resume SSMSE steps:

1. Connect to local server

2. Connect to remote server

3. Create Sql file by using "Script out Create " command on the local table

4. Change connection from local to remote

5. execute your sq file to create table on the remote DB

6. Open table on remote DB

7. Open table on local DB

8. use copy/paste to copy rows from local to remote

you must do it for all table including aspnet tables when you use features like menbership, roles profiles and personalization

How to copy db from test server to local machine running MSSQL2000 Per.

I am in a situation where I need to get a copy of test database that is
on production server running MSSQL 2000 Standard to my local machine
running MSSQL 2000 personel. I tried to use the copy wizard where it
appears I get connected to the source server OK but when I try to
indicate the destination server which is my local machine I get errors
poping up about cannot connect to (local) etc.

I am NOT a DBA just a programmer trying to get a local test environment
up to be more productive.

LsumnlerHi,

go to the sql client network utility on sql 2000 standard and add the
IP address of the sql 2000 personal.
Try connecting first thru query Analyzer if it connects, then go try
sql wizard.

Easy way is to backup the DB on sql 2000 standard and restore on sql
2000 personal.

Let me know what happens

RA.|||"len" <lsumnler@.gmail.com> wrote in message
news:1113927630.057592.236140@.o13g2000cwo.googlegr oups.com...
>I am in a situation where I need to get a copy of test database that is
> on production server running MSSQL 2000 Standard to my local machine
> running MSSQL 2000 personel. I tried to use the copy wizard where it
> appears I get connected to the source server OK but when I try to
> indicate the destination server which is my local machine I get errors
> poping up about cannot connect to (local) etc.
> I am NOT a DBA just a programmer trying to get a local test environment
> up to be more productive.
> Lsumnler

See this KB article - there are a number of requirements for the wizard to
work correctly:

http://support.microsoft.com/defaul...kb;en-us;274463

If possible, you might find that backup/restore is an easier option:

http://support.microsoft.com/defaul...kb;en-us;314546

Simon