Showing posts with label setup. Show all posts
Showing posts with label setup. Show all posts

Tuesday, March 27, 2012

changing the server used by a report

hopefully have better luck with this.

I have two servers running the same database for two locations, I have a site setup to report for one of them and I want to make it report for both based on what location a person is in.

I have it working when there are no parameters, however as soon as you enter parameters into the mix it breaks.

here is what I use to do it when no parameters are required.

CrystalReportSource1.ReportDocument.DataSourceConnections[0].SetConnection(myConnectionInfo.ServerName, myConnectionInfo.DatabaseName, false);

CrystalReportSource1.ReportDocument.DataSourceConnections[0].SetLogon(myConnectionInfo.UserID, myConnectionInfo.Password);

I tried to put this in various locations, before the parameters are read, after reading but before setting, after everything.
Even before the report is loaded!

all gave me an error on the report.

I also tried to grab the parameter definitions, then set these and then copy the definitions back and that failed, it was read only.

Any ideas?

ThanksNM - threw in a verifydatabase on the report document and all is well.

Changing the name of a SQL 7.0 Server

What is the correct way to change the name of server
running SQL 7.0?
Changing the name and running setup seems to work but does
that cause other problems?You also need to run the following after running setup
use master
go
exec sp_dropserver 'old name'
go
exec sp_addserver 'new name','local'
If SQL Server is configured to listen on either the Multiprotocol or NWLink
IPX/SPX network libraries, you'll need to remove them, and then add them
back using the SQL Server Network Utility.
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
quote:

> What is the correct way to change the name of server
> running SQL 7.0?
> Changing the name and running setup seems to work but does
> that cause other problems?
|||Hi,
For SQL 7 , after changing the server name , you need to ,
1. Run the SQL 7 setup , it automatically recognise the server name change
and will update the registry
2. Start SQL server and then login to Query analyser and execute
a. sp_dropserver <oldserver name>
b. sp_addserver <newserver name>,LOCAL
3. Restart SQL server service
Thanks
Hari
MCDBA
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
quote:

> What is the correct way to change the name of server
> running SQL 7.0?
> Changing the name and running setup seems to work but does
> that cause other problems?
|||The procedure is explained here:
http://vyaskn.tripod.com/administration_faq.htm#q5
You'll have to amend all applications, so that they connect with the correct
name. Do you have replication in place?
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
What is the correct way to change the name of server
running SQL 7.0?
Changing the name and running setup seems to work but does
that cause other problems?|||Thanks for the reply.
Named pipes is the only protocol used.
quote:

>--Original Message--
>You also need to run the following after running setup
>use master
>go
>exec sp_dropserver 'old name'
>go
>exec sp_addserver 'new name','local'
>If SQL Server is configured to listen on either the

Multiprotocol or NWLink
quote:

>IPX/SPX network libraries, you'll need to remove them,

and then add them
quote:

>back using the SQL Server Network Utility.
>--
>HTH
>Jasper Smith (SQL Server MVP)
>I support PASS - the definitive, global
>community for SQL Server professionals -
>http://www.sqlpass.org
>"Andrew Buschbom" <anonymous@.discussions.microsoft.com>

wrote in message
quote:

>news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
does[QUOTE]
>
>.
>

Changing the name of a SQL 7.0 Server

What is the correct way to change the name of server
running SQL 7.0?
Changing the name and running setup seems to work but does
that cause other problems?You also need to run the following after running setup
use master
go
exec sp_dropserver 'old name'
go
exec sp_addserver 'new name','local'
If SQL Server is configured to listen on either the Multiprotocol or NWLink
IPX/SPX network libraries, you'll need to remove them, and then add them
back using the SQL Server Network Utility.
--
HTH
Jasper Smith (SQL Server MVP)
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
> What is the correct way to change the name of server
> running SQL 7.0?
> Changing the name and running setup seems to work but does
> that cause other problems?|||Hi,
For SQL 7 , after changing the server name , you need to ,
1. Run the SQL 7 setup , it automatically recognise the server name change
and will update the registry
2. Start SQL server and then login to Query analyser and execute
a. sp_dropserver <oldserver name>
b. sp_addserver <newserver name>,LOCAL
3. Restart SQL server service
Thanks
Hari
MCDBA
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
> What is the correct way to change the name of server
> running SQL 7.0?
> Changing the name and running setup seems to work but does
> that cause other problems?|||The procedure is explained here:
http://vyaskn.tripod.com/administration_faq.htm#q5
You'll have to amend all applications, so that they connect with the correct
name. Do you have replication in place?
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
Is .NET important for a database professional?
http://vyaskn.tripod.com/poll.htm
"Andrew Buschbom" <anonymous@.discussions.microsoft.com> wrote in message
news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
What is the correct way to change the name of server
running SQL 7.0?
Changing the name and running setup seems to work but does
that cause other problems?|||Thanks for the reply.
Named pipes is the only protocol used.
>--Original Message--
>You also need to run the following after running setup
>use master
>go
>exec sp_dropserver 'old name'
>go
>exec sp_addserver 'new name','local'
>If SQL Server is configured to listen on either the
Multiprotocol or NWLink
>IPX/SPX network libraries, you'll need to remove them,
and then add them
>back using the SQL Server Network Utility.
>--
>HTH
>Jasper Smith (SQL Server MVP)
>I support PASS - the definitive, global
>community for SQL Server professionals -
>http://www.sqlpass.org
>"Andrew Buschbom" <anonymous@.discussions.microsoft.com>
wrote in message
>news:0d9401c3dab8$e0ec3540$a401280a@.phx.gbl...
>> What is the correct way to change the name of server
>> running SQL 7.0?
>> Changing the name and running setup seems to work but
does
>> that cause other problems?
>
>.
>

Thursday, March 8, 2012

Changing Remote Distributor

SQL 2000.

If I have a server setup to use a remote server for replication distribution can I actually change which server is the distributor?

Example

Server1 has publications
Server2 is distributor for Server1's Publication
Server3 is new hardware

Can i Make Server3 replace Server2 as the distributor?

How can I do this?No (and yes).

Microsoft says "No" (I have asked), the distributor server name cannot be changed. The reason is that this name is used in various replication system tables.

You can of course track down all system tables where the distributor name is used and change it. I tried it just for fun on a test system and it worked, but I would never do it on a production system and I would never recommend doing it to anybody.

Wednesday, March 7, 2012

Changing path of data & log files on the fly

We have a SQL Server setup as a publisher to 15 subscribers. We need to change the path of the data & log files to a new drive (added a new harddisk). We plan to take a cold backup of the database and shift the data & log files to the new drive. Then we just attach the data & log files from the new path.

Will this disturb my existing replication Setup?
Is the the correct procedure for changing the path of the existing data & log files?
What is the appropriate method for shifting data & log file of a live database to a different location (directory/drive) ?

thanks in advancedisable replication;
sp_detach_db;
move files to new location;
sp_attach_db;
enable replication.|||Thanks for the suggestion. I'll try this out and confirm back. Thanks again anyways.

Changing owner of a subscription

We are currently running RS 2000 SP1
We had a contractor in who setup a subscription to a report using a
temporary AD account. He is therefore listed as the "owner" of the
subscription. His account has now been disabled in AD and I'm unable to
change anything in the subscription!
If I attempt to change the properties of the subscription via the website I
get an error message stating that the user or group is not found,
furthermore, the subscription isn't running, I assume for the same reason (I
haven't gone looking through the logs yet).
Is there a way to update the subscription short of updating the
Subscriptions table in the database with a new owner ID from the User table?
If that is the only way, has anyone done it sucessfully?
Thanks,
BillIf you are the administrator of the machine, then in the Properties/Security,
add BUILTIN\Administrators as Content Manager; you should be able to manage
any subscriptions. Let me know if this will work or not.
"program_guy" wrote:
> We are currently running RS 2000 SP1
> We had a contractor in who setup a subscription to a report using a
> temporary AD account. He is therefore listed as the "owner" of the
> subscription. His account has now been disabled in AD and I'm unable to
> change anything in the subscription!
> If I attempt to change the properties of the subscription via the website I
> get an error message stating that the user or group is not found,
> furthermore, the subscription isn't running, I assume for the same reason (I
> haven't gone looking through the logs yet).
> Is there a way to update the subscription short of updating the
> Subscriptions table in the database with a new owner ID from the User table?
> If that is the only way, has anyone done it sucessfully?
> Thanks,
> Bill|||I'm already a content manager and an administrator on the machine. This was
not the issue.
I've already given up and deleted and re-created the subscription in question.
Bill
"Helen" wrote:
> If you are the administrator of the machine, then in the Properties/Security,
> add BUILTIN\Administrators as Content Manager; you should be able to manage
> any subscriptions. Let me know if this will work or not.
> "program_guy" wrote:
> > We are currently running RS 2000 SP1
> >
> > We had a contractor in who setup a subscription to a report using a
> > temporary AD account. He is therefore listed as the "owner" of the
> > subscription. His account has now been disabled in AD and I'm unable to
> > change anything in the subscription!
> >
> > If I attempt to change the properties of the subscription via the website I
> > get an error message stating that the user or group is not found,
> > furthermore, the subscription isn't running, I assume for the same reason (I
> > haven't gone looking through the logs yet).
> >
> > Is there a way to update the subscription short of updating the
> > Subscriptions table in the database with a new owner ID from the User table?
> > If that is the only way, has anyone done it sucessfully?
> >
> > Thanks,
> > Bill|||Bill,
Just so you know for the future, it does work if you update the
subscriptions table with a new OwnerID.
We had the same thing happen to us when one of our divisional
administrators left the company. All of her subscriptions stopped when
her AD profile was deactivated. To alleviate the possibility of this
happening again we created a job on the server that periodically
updates OwnerIDs in the subscriptions table to the ID of the AD group
that includes all the divisional admins. Chances are someone from the
group will always be around since we update that group with any comings
and goings.

Friday, February 24, 2012

changing merge agent profile for HTTPS - mergeSubscriberType = anonymous

Hi


We are using HTTPS merge replication

Our setup is as follows:

subscription.CreateSyncAgentByDefault = False -- I wrote a windows service to synchronise
subscription.UseWebSynchronization = True
subscription.InternetSecurityMode = AuthenticationMethod.BasicAuthentication
subscription.SubscriberType = MergeSubscriberType.Anonymous

Some of our subscribers have low-quality internet connections - how do I get the agent at the publisher/distributer use a slower profile - I've read How to: Work with Replication Agent Profiles (Replication Transact-SQL Programming)
but can't see where you specifiy an alternate agent profile

On the distributer / publisher (same machine) I go to replication monitor -> Warnings and Agents - I can only set the profile for the snapshot agent....

thanks
Bruce

To see the various profiles, in replication monitor, right-click on a merge subscription and select Agent Profile. YOu should see various agent profiles, such as High Volume Server-to-Server Profile, Slow link agent profile, etc.

You can assign a non-default profile programmatically, look up AgentProfile Class.

|||

I right click on the merge subscription and there is no such option - is this 'cause subscription.CreateSyncAgentByDefault = False

Thanks
Bruce

|||
Bruce,

If your using RMO in your service to synchronise then try this property of the mergesynchronizationagent

mergesynchronizationagent.ProfileName = "Slow link agent profile."

Rab

Changing job while running....PLEASE HELP!

I have a job that contains 2 steps. Right now the job is setup to quit with
success for both steps, and the job is currently running. I would like to
have to job go on to step 2 after step 1 is complete. Is it possible to
change the job to go to next step after step 1 is complete, or is it too late
once the job has already been started?
Thanks!!!!The actual work itself only lasts as long as it takes to do the work. If I
schedule a job to run every hour it only runs once an hour, not all the
time. So yes you can change it and the next time it runs it will be as you
changed it.
--
Andrew J. Kelly SQL MVP
"Andy" <Andy@.discussions.microsoft.com> wrote in message
news:A4638A8F-8520-4E2B-8BF6-519F16509F2B@.microsoft.com...
>I have a job that contains 2 steps. Right now the job is setup to quit
>with
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too
> late
> once the job has already been started?
> Thanks!!!!|||Once the job is running you cannot change it. You can, however, alter the
job to just run the second step and manually run it once the first step is
done if you're concern is to run the second step even if the first step fails.
--
burt_king@.yahoo.com
"Andy" wrote:
> I have a job that contains 2 steps. Right now the job is setup to quit with
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too late
> once the job has already been started?
> Thanks!!!!

Changing job while running....PLEASE HELP!

I have a job that contains 2 steps. Right now the job is setup to quit with
success for both steps, and the job is currently running. I would like to
have to job go on to step 2 after step 1 is complete. Is it possible to
change the job to go to next step after step 1 is complete, or is it too late
once the job has already been started?
Thanks!!!!
The actual work itself only lasts as long as it takes to do the work. If I
schedule a job to run every hour it only runs once an hour, not all the
time. So yes you can change it and the next time it runs it will be as you
changed it.
Andrew J. Kelly SQL MVP
"Andy" <Andy@.discussions.microsoft.com> wrote in message
news:A4638A8F-8520-4E2B-8BF6-519F16509F2B@.microsoft.com...
>I have a job that contains 2 steps. Right now the job is setup to quit
>with
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too
> late
> once the job has already been started?
> Thanks!!!!
|||Once the job is running you cannot change it. You can, however, alter the
job to just run the second step and manually run it once the first step is
done if you're concern is to run the second step even if the first step fails.
burt_king@.yahoo.com
"Andy" wrote:

> I have a job that contains 2 steps. Right now the job is setup to quit with
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too late
> once the job has already been started?
> Thanks!!!!

Changing job while running....PLEASE HELP!

I have a job that contains 2 steps. Right now the job is setup to quit with
success for both steps, and the job is currently running. I would like to
have to job go on to step 2 after step 1 is complete. Is it possible to
change the job to go to next step after step 1 is complete, or is it too lat
e
once the job has already been started?
Thanks!!!!The actual work itself only lasts as long as it takes to do the work. If I
schedule a job to run every hour it only runs once an hour, not all the
time. So yes you can change it and the next time it runs it will be as you
changed it.
Andrew J. Kelly SQL MVP
"Andy" <Andy@.discussions.microsoft.com> wrote in message
news:A4638A8F-8520-4E2B-8BF6-519F16509F2B@.microsoft.com...
>I have a job that contains 2 steps. Right now the job is setup to quit
>with
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too
> late
> once the job has already been started?
> Thanks!!!!|||Once the job is running you cannot change it. You can, however, alter the
job to just run the second step and manually run it once the first step is
done if you're concern is to run the second step even if the first step fail
s.
--
burt_king@.yahoo.com
"Andy" wrote:

> I have a job that contains 2 steps. Right now the job is setup to quit wi
th
> success for both steps, and the job is currently running. I would like to
> have to job go on to step 2 after step 1 is complete. Is it possible to
> change the job to go to next step after step 1 is complete, or is it too l
ate
> once the job has already been started?
> Thanks!!!!

Thursday, February 16, 2012

Changing domains and SQL Server connectivity problem

Hi,
My firm will soon need to join the domain of our global firm. Currently I
have 4 SQL Servers in my old domain with replication setup. I have setup a
test server and I have found that clients within the old domain have no
access to the SQL Server in the new domain, but clients in the new domain
have access in the SQL Server of the old domain.
What do I need to do so that clients within the old domain have access to
the SQL Server in the new domain?
"Chris Themi" <ChrisThemi@.discussions.microsoft.com> wrote in message
news:F607969E-928C-4D58-BB7B-537E95BEF320@.microsoft.com...

> My firm will soon need to join the domain of our global firm. Currently I
> have 4 SQL Servers in my old domain with replication setup. I have setup a
> test server and I have found that clients within the old domain have no
> access to the SQL Server in the new domain, but clients in the new domain
> have access in the SQL Server of the old domain.
> What do I need to do so that clients within the old domain have access to
> the SQL Server in the new domain?
It sounds like you need to set up another domain trust, have your new domain
trust your old domain. Add your client accounts in the old domain into the
appropriate groups in the new domain (that have SQL Server access).
Steve

Changing domains and SQL Server connectivity problem

Hi,
My firm will soon need to join the domain of our global firm. Currently I
have 4 SQL Servers in my old domain with replication setup. I have setup a
test server and I have found that clients within the old domain have no
access to the SQL Server in the new domain, but clients in the new domain
have access in the SQL Server of the old domain.
What do I need to do so that clients within the old domain have access to
the SQL Server in the new domain?"Chris Themi" <ChrisThemi@.discussions.microsoft.com> wrote in message
news:F607969E-928C-4D58-BB7B-537E95BEF320@.microsoft.com...

> My firm will soon need to join the domain of our global firm. Currently I
> have 4 SQL Servers in my old domain with replication setup. I have setup a
> test server and I have found that clients within the old domain have no
> access to the SQL Server in the new domain, but clients in the new domain
> have access in the SQL Server of the old domain.
> What do I need to do so that clients within the old domain have access to
> the SQL Server in the new domain?
It sounds like you need to set up another domain trust, have your new domain
trust your old domain. Add your client accounts in the old domain into the
appropriate groups in the new domain (that have SQL Server access).
Steve

Friday, February 10, 2012

Changing data types and lengths in replicated tables

Okay, this is a real bummer. I setup a one way replication from one SQL
server to another. Now, the data types and lengths in some of my tables needs
to change to fit a new data structure but I keep receiving and error that SQL
cannot drop the table because it is replicated. I can make the changes on the
Subscriber with no problem, but the publisher is a no-go!! I thought any
table changes I made would be replicated as well - I did not realize this was
going to be an issue.
Can anyone offer any help - our process is running tonight and I have to get
this working by 1AM.
Thanks,
Nicole Hagler
Nicole, this is just the way it is. The best way IMO, is to RClick the
Publication/ Generate SQL Script(Script the steps to delete)/ Preview/ grab
the
exec sp_dropsubscription @.publication = N'', @.article = N'', @.subscriber =
N'all', @.destination_db = N'all'
exec sp_droparticle @.publication = N'', @.article = N'',
@.force_invalidate_snapshot = 1
GO
that applies to your table. Then once you make your changes you will need to
resnapshot. (Unless you can do this when there will be no data
manipulations.) Do this first in test. 99.99% of the time that I've done
this, it only wanted to resnapshot the table in question. But recenlty it
wanted to resnapshot all of the table in the Publication and I still havent
figured out why. Worst case, create a new Publication and add this table to
that.
CR
"Nicole" <Nicole@.discussions.microsoft.com> wrote in message
news:0118E497-E907-4805-8266-174464DFE9D6@.microsoft.com...
> Okay, this is a real bummer. I setup a one way replication from one SQL
> server to another. Now, the data types and lengths in some of my tables
> needs
> to change to fit a new data structure but I keep receiving and error that
> SQL
> cannot drop the table because it is replicated. I can make the changes on
> the
> Subscriber with no problem, but the publisher is a no-go!! I thought any
> table changes I made would be replicated as well - I did not realize this
> was
> going to be an issue.
> Can anyone offer any help - our process is running tonight and I have to
> get
> this working by 1AM.
> Thanks,
> Nicole Hagler
|||Create a temp table which holds the pk and the columns you wish to change.
use sp_repldropcolumn to drop the column, and then sp_repladdcolumn to add
it back with the same name, but the new data type. Then update this column
to have the same value as the column in the temp table which corresponds to
your pk.
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
"Nicole" <Nicole@.discussions.microsoft.com> wrote in message
news:0118E497-E907-4805-8266-174464DFE9D6@.microsoft.com...
> Okay, this is a real bummer. I setup a one way replication from one SQL
> server to another. Now, the data types and lengths in some of my tables
needs
> to change to fit a new data structure but I keep receiving and error that
SQL
> cannot drop the table because it is replicated. I can make the changes on
the
> Subscriber with no problem, but the publisher is a no-go!! I thought any
> table changes I made would be replicated as well - I did not realize this
was
> going to be an issue.
> Can anyone offer any help - our process is running tonight and I have to
get
> this working by 1AM.
> Thanks,
> Nicole Hagler
|||Hilary this is an awesome idea and one I will definatley take advantage of
when possible. But Im curious if you've run into problems on updating large
tables in this way due to locking?
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:ODahu$3pFHA.820@.TK2MSFTNGP09.phx.gbl...
> Create a temp table which holds the pk and the columns you wish to change.
> use sp_repldropcolumn to drop the column, and then sp_repladdcolumn to add
> it back with the same name, but the new data type. Then update this column
> to have the same value as the column in the temp table which corresponds
> to
> your pk.
> --
> 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
> "Nicole" <Nicole@.discussions.microsoft.com> wrote in message
> news:0118E497-E907-4805-8266-174464DFE9D6@.microsoft.com...
> needs
> SQL
> the
> was
> get
>