Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Monday, March 26, 2012

Export Data from Tables to Files Using Procedures

Hi

Having small query

How can i able to Export Data from Tables to Specific Local files using Procedures?

Environment Details

OS : Windows 2000 server
Database : MS-SQL Server

Solutions are needed asap.

Thanks in advance

cheers
vasuTake a look at bcp/osql in sql book online.

e.g.

declare @.sql nvarchar(1000)

set @.sql='bcp "Northwind..Orders" out "c:\Orders.txt" -w -T -S"' + @.@.servername + '"'

exec master..xp_cmdshell @.sql

export data from postgresql on linux to ms-sqlserver 2000 on windows

Hello all,

I have been trying to find some information about exporting data from
postgresql on linux to ms-sqlserver 2000 on windows but have not been
able to get hold of any information. I would really appreciate if
someone can point me to some source of information.

Thanks in advance,
NishyHi

If you can get an ODBC connection you should be able to use the import
wizard.

John

"Nishy" <nishu_shr@.hotmail.com> wrote in message
news:162d91fa.0308231012.731d9980@.posting.google.c om...
> Hello all,
> I have been trying to find some information about exporting data from
> postgresql on linux to ms-sqlserver 2000 on windows but have not been
> able to get hold of any information. I would really appreciate if
> someone can point me to some source of information.
> Thanks in advance,
> Nishy|||Probably be a lot easier to pull the data from PostGreSQL into SQL Server
since I have had a hell of a time finding a DBD for SQL Server ;-)

"Nishy" <nishu_shr@.hotmail.com> wrote in message
news:162d91fa.0308231012.731d9980@.posting.google.c om...
> Hello all,
> I have been trying to find some information about exporting data from
> postgresql on linux to ms-sqlserver 2000 on windows but have not been
> able to get hold of any information. I would really appreciate if
> someone can point me to some source of information.
> Thanks in advance,
> Nishy

Friday, March 23, 2012

export a view with double quote delimiter

i am running sql server 2000 on windows 2000. i have a need to export a view and delimit the columns with double quotes as it has imbedded commas in the columns, how do i do this??Quoted strings is the default behavior for the DTS Export Wizard (http://msdn.microsoft.com/library/en-us/dtssql/dts_tools_wiz_8vsj.asp).

-PatP

Monday, March 19, 2012

Explorer won't open SQL Profiler's trace data file (.trc) on WinXP

The problem that I'm having is that I cannot launch SQL Profiler by
double-clicking the .TRC file type on any maching running Windows XP with
SP2. When I try, I get the "Open With" dialog, but Profiler isn't in the
list and can't be added.
We have SQL 2000 SP3a Client Tools installed on machines with Win2k SP3,
WinXP SP1a and WinXP SP2. Launching Profiler this way works on any machine
that is not WinXP SP2.
I have this problem on machines that were upgraded to SP2, and on machines
that came with SP2 preinstalled. So it doesn't matter whether the SQL Client
Tools were installed before or after.
All of my WinXP SP2 machines already have the SQL Server 2000 hotfix #
810185 installed so I do not know if this problem occurred without it.
Jack Wilson wrote:
> The problem that I'm having is that I cannot launch SQL Profiler by
> double-clicking the .TRC file type on any maching running Windows XP
> with SP2. When I try, I get the "Open With" dialog, but Profiler
> isn't in the list and can't be added.
> We have SQL 2000 SP3a Client Tools installed on machines with Win2k
> SP3, WinXP SP1a and WinXP SP2. Launching Profiler this way works on
> any machine that is not WinXP SP2.
> I have this problem on machines that were upgraded to SP2, and on
> machines that came with SP2 preinstalled. So it doesn't matter
> whether the SQL Client Tools were installed before or after.
> All of my WinXP SP2 machines already have the SQL Server 2000 hotfix #
> 810185 installed so I do not know if this problem occurred without it.
This is an interesting problem. One that I cannot figure out. For some
reason, even though the TRC file extension is correctly associated with
Profiler.exe, and Profiler.exe is in the Path, it will not open and
seems to think it's a Visual Studio 6 file type. Alas, all is not
lost...
While I cannot identify the problem, you can easily address it by
opening Explorer, selecting the Tools - Folder Options menu option.
Click on File Types and find TRC. Click the Advanced button and then
open up the "Open" action. It should read something like "profiler.exe
/f%1". Click on Browse and locate the Profiler.exe application in the
SQL Server BINN folder. You should now see the full path and an action
that reads as follows:
"C:\Program Files\Microsoft SQL Server\80\Tools\Binn\profiler.exe" /F%1
Then it should work.
David Gugick
Quest Software
www.imceda.com
www.quest.com

Explanation of Security Groups for 2005

I've been reconfiguring my Windows service accounts for the SQL Server service and the SQL Agent service to comply with the security best practices for SQL Server 2005. Specifically, I created two new network accounts. One account runs the SQL Server service, the other runs the SQL Agent service.

Each account is an ordinary user account with no administrative privileges, althought the SQL Agent account is a member of the "Pre-Windows 2000 compatible access" group on the domain controller. This group membership was specified in Books Online ("Selecting an Account for SQL Server Agent Service").

If you have installed the September CTP, you will notice several new local Windows groups on your server. These groups simply the process of configuring accounts used to run SQL Server services. All you need to do is add the account you wish to use for the specified service to the group and the account will have all the appropriate permissions it needs to run the service.

Two of these groups have very similar descriptions:

The first group is named:
"SQLServer2005MSFTEUser$ComputerName$InstanceName"

The second group is named:
"SQLServer2005MSSQLUser$ComputerName$InstanceName"

The description for these groups is identical:
"Members in the group have the required access and privileges to be assigned as the log on account for the associated instance of SQL Server and SQL Server FullText Search in SQL Server 2005"

Could someone from Microsoft explain the differences between these two groups?

I'm not sure why these have the same description. Someone in SQL Server Setup & Upgrade might be able to provide more information on that.

For "SQLServer2005MSFTEUser$ComputerName$InstanceName", the description should be: "Members in the group have the required access and privileges to be assigned as the log on account for the associated instance of SQL Server FullText Search in SQL Server 2005".

And for "SQLServer2005MSSQLUser$ComputerName$InstanceName", the description should be: "Members in the group have the required access and privileges to be assigned as the log on account for the associated instance of SQL Server in SQL Server 2005".

If you setup different service accounts for SQLServer and SQL Server FullText via the SQL Server Configuration Manager (SCM), you will notice that each group will include the corresponding account. If you use SCM, you won't need to manually add accounts to these groups, they are managed automatically by the SCM tool.

Thanks
Laurentiu

Monday, March 12, 2012

Expiring and Reinitializing Subscriptions

Publisher: Windows 2000 SP4
SQL2005 SP1
Subscriber:SQL Server Express
Tablet XP SP2
If I have a subscription retention of 20 days and a subscriber never
misses a 20 day window; aka they never "expire" because they always
replicate within the retention period, what happens to the replication
meta-data? Is the meta-data ever cleaned up in this case or does it
grow and grow because the subscription never exceeded the retention
window?
Also, If I have no expiration for my subscribers - not recommended I
know - is there any way to purge the history? Would reinitializing
the subscription clean things up -or- because there was no expiration,
would it keeps everything and grow, grow, grow regardless of a
reinitialize?
They are purged as they fall out of the conflict retention and merge
metadata retention windows.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Crash" <sourcenexus@.san.rr.com> wrote in message
news:1175191098.139401.217150@.p77g2000hsh.googlegr oups.com...
> Publisher: Windows 2000 SP4
> SQL2005 SP1
> Subscriber:SQL Server Express
> Tablet XP SP2
> If I have a subscription retention of 20 days and a subscriber never
> misses a 20 day window; aka they never "expire" because they always
> replicate within the retention period, what happens to the replication
> meta-data? Is the meta-data ever cleaned up in this case or does it
> grow and grow because the subscription never exceeded the retention
> window?
> Also, If I have no expiration for my subscribers - not recommended I
> know - is there any way to purge the history? Would reinitializing
> the subscription clean things up -or- because there was no expiration,
> would it keeps everything and grow, grow, grow regardless of a
> reinitialize?
>
|||On Mar 29, 10:08 am, "Hilary Cotter" <hilary.cot...@.gmail.com> wrote:
> They are purged as they fall out of the conflict retention and merge
> metadata retention windows.
>
Don't quite understand your statement.
Yes/No: If subscription is never expired then because I have a 20 day
retention my history will never grow beyond such as appropriate for a
20 day retention.
True/False: If I have no expiration then history will never stop
growing even if I reinitialize a subscription.
|||If you have a defined retention period metadata is cleaned up. The metadata
which is cleaned up is metadata which is older than the retention period.
So to answer your first question - Yes. If your subscription has not expired
the metadata will only be retained for whatever your retention period is -
20 days.
For subscriptions with no expiration the metadata is never cleaned up. If
you re-initialized all the existing metadata is purged and replaced with a
new set of metadata. So to answer your second question: False.
Please refer to http://msdn2.microsoft.com/en-us/library/ms151778.aspx for
more information.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Crash" <sourcenexus@.san.rr.com> wrote in message
news:1175193126.263827.280740@.y66g2000hsf.googlegr oups.com...
> On Mar 29, 10:08 am, "Hilary Cotter" <hilary.cot...@.gmail.com> wrote:
> Don't quite understand your statement.
> Yes/No: If subscription is never expired then because I have a 20 day
> retention my history will never grow beyond such as appropriate for a
> 20 day retention.
> True/False: If I have no expiration then history will never stop
> growing even if I reinitialize a subscription.
>
>

Expired Backup Files

Hello.
I can't get SQL to delete the old backup and transaction
files.
I was told that there is a bug with Windows 95, 98 or ME
but that is not my case. I have SQL 2000 running on
Windows 2000.
What can I do?
Thanx.
Hector,
There was a thread on this recently which can be viewed here:
Subject: Re: Maintenence Plan
http://tinyurl.com/5plnm
Does that help?
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hector wrote:
> Hello.
> I can't get SQL to delete the old backup and transaction
> files.
> I was told that there is a bug with Windows 95, 98 or ME
> but that is not my case. I have SQL 2000 running on
> Windows 2000.
> What can I do?
> Thanx.
>
|||I read it and it could be my situation.
Thanx Mark!

>--Original Message--
>Hector,
>There was a thread on this recently which can be viewed
here:[vbcol=seagreen]
>Subject: Re: Maintenence Plan
>http://tinyurl.com/5plnm
>Does that help?
>--
>Mark Allison, SQL Server MVP
>http://www.markallison.co.uk
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
>Hector wrote:
transaction
>.
>

Expired Backup Files

Hello.
I can't get SQL to delete the old backup and transaction
files.
I was told that there is a bug with Windows 95, 98 or ME
but that is not my case. I have SQL 2000 running on
Windows 2000.
What can I do?
Thanx.Hector,
There was a thread on this recently which can be viewed here:
Subject: Re: Maintenence Plan
http://tinyurl.com/5plnm
Does that help?
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hector wrote:
> Hello.
> I can't get SQL to delete the old backup and transaction
> files.
> I was told that there is a bug with Windows 95, 98 or ME
> but that is not my case. I have SQL 2000 running on
> Windows 2000.
> What can I do?
> Thanx.
>|||I read it and it could be my situation.
Thanx Mark!
>--Original Message--
>Hector,
>There was a thread on this recently which can be viewed
here:
>Subject: Re: Maintenence Plan
>http://tinyurl.com/5plnm
>Does that help?
>--
>Mark Allison, SQL Server MVP
>http://www.markallison.co.uk
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
>Hector wrote:
>> Hello.
>> I can't get SQL to delete the old backup and
transaction
>> files.
>> I was told that there is a bug with Windows 95, 98 or ME
>> but that is not my case. I have SQL 2000 running on
>> Windows 2000.
>> What can I do?
>> Thanx.
>.
>

Expired Backup Files

Hello.
I can't get SQL to delete the old backup and transaction
files.
I was told that there is a bug with Windows 95, 98 or ME
but that is not my case. I have SQL 2000 running on
Windows 2000.
What can I do?
Thanx.Hector,
There was a thread on this recently which can be viewed here:
Subject: Re: Maintenence Plan
http://tinyurl.com/5plnm
Does that help?
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Hector wrote:
> Hello.
> I can't get SQL to delete the old backup and transaction
> files.
> I was told that there is a bug with Windows 95, 98 or ME
> but that is not my case. I have SQL 2000 running on
> Windows 2000.
> What can I do?
> Thanx.
>|||I read it and it could be my situation.
Thanx Mark!

>--Original Message--
>Hector,
>There was a thread on this recently which can be viewed
here:
>Subject: Re: Maintenence Plan
>http://tinyurl.com/5plnm
>Does that help?
>--
>Mark Allison, SQL Server MVP
>http://www.markallison.co.uk
>Looking for a SQL Server replication book?
>http://www.nwsu.com/0974973602.html
>
>Hector wrote:
transaction[vbcol=seagreen]
>.
>

Friday, March 9, 2012

experience a hard time to connect to the database my dbase is sql express ed 2005

hi to all , well i succesfully installed SQL server 2005 express edition in windows 2000 however when i am trying to connect my program thru ODBC im having a difficulty to connect. but based on my observation if i am not connected to the internet i cannot connect to my database but if i am connected to the internet i could access the SQL server 2005 express edition.i have read the hardware requirements for SQL server 2005 express edition i have upgraded the IE5 into IE6 SP1,windows 2000 SP4, even my memory to 1GB.but still i have the problem.

my question is, do i have to maintain my connection to the internet for me to have a smooth SQL connection?

BTW, i badly need the answer.Bigthanks!

-gae-

Have a look at my screencast for enabling Remote connections, that should help. They are available in the screencasts section of my site.

HTH, jens Suessmeyer.

http://www.sqlserver2005.de

Wednesday, March 7, 2012

Expand/Collapse works from VS but not from IE

I am using Reporting Services with SP2; SQL Server 2000 with SP4; Windows
2003 Server; 1GB freespace and 1GB RAM.
Previewing my report in either IE (ReportServer) or Visual Studio, the
expand and collapse on my drillthrough works just fine. I can export to
Excel from Visual Studio's preview tab and get all the levels of my
drillthrough to work just fine. However, exporting to Excel from IE only
gives me the first two levels of drillthrough (I have 5 in this particular
report) -- I get the same 2 levels when I immediately export to Excel from
the RS menu bar or run this as a timed subscription.
Is there a buffer issue or something I can configure in Reporting Services
that will allow it to export all 5 levels to Excel?After toying around with the Properties in ReportServer I found that setting
the report's Properties | Execution | Report Execution Timeout to "Do not
timeout report execution" fixed the problem. I have been able to get all
levels of expansion to export to Excel from IE.
"bhc" wrote:
> I am using Reporting Services with SP2; SQL Server 2000 with SP4; Windows
> 2003 Server; 1GB freespace and 1GB RAM.
> Previewing my report in either IE (ReportServer) or Visual Studio, the
> expand and collapse on my drillthrough works just fine. I can export to
> Excel from Visual Studio's preview tab and get all the levels of my
> drillthrough to work just fine. However, exporting to Excel from IE only
> gives me the first two levels of drillthrough (I have 5 in this particular
> report) -- I get the same 2 levels when I immediately export to Excel from
> the RS menu bar or run this as a timed subscription.
> Is there a buffer issue or something I can configure in Reporting Services
> that will allow it to export all 5 levels to Excel?

Friday, February 24, 2012

Existing Oracle Program Prevents SQL Server Express Being Installed in Windows XP Pro that is in

Hi all,

Our Microsoft NT 4 Network has Oracle program for all the Windows XP Pro PC terminals to use. We did not have the SQL Server Express Beta version installed before. Recently our Computer Administrator tried to install the SQL Server Express Edition that is downloaded from Microsoft Website to my Windows XP Pro PC terminal without luck, because the Oracle program is already in our LAN Network and prevents the installation of the SQL Server Express. Please help and advise me how to get the SQL Server Express installed in this situation.

Thanks in advance,

Scott Chang

Hi Scott,

First off, you'll need to take a look at the installer logs to get an idea of why installation failed. The logs are in C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG and C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files.

Second, I'm going to move this to the Setup forum so they can take a look at this once you've come back with information from the logs.

- Mike

|||Can you supply the exact error encountered when trying to install Express, as well as the logs referenced by Mike above?

Sunday, February 19, 2012

Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionN

I have a SSRS 2005 SP1 running on Windows 2003 SRS. On reports with
parameters we are getting the following error.
Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionNotFound).
Anyone else seen this? Any suggestions on how to resolve this?
Thanks.Yes, we are seeing the same thing.
In our case, the report runs the first time, with the default parameters --
which says that there's an aweful lot of setup that is functioning just fine.
Then, upon changing a parameter and pressing "View Report", the following
obscure error shows up:
Execution 'qr1hx055hlpkx445xluqd4yv' cannot be found (rsExecutionNotFound)
It also occurs when simply pressing "View Report", with no changes to
parameters.
"rdwill1" wrote:
> I have a SSRS 2005 SP1 running on Windows 2003 SRS. On reports with
> parameters we are getting the following error.
> Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionNotFound).
> Anyone else seen this? Any suggestions on how to resolve this?
> Thanks.