Keep Existing Object Unchanged Or Create Schema At Subscriber =false?

Aug 15, 2006

 Hi,

I have the same database(3GB) in 2 physical locations in usa and europe

I need to create a publisher and subscriber between these 2 database without sending any snapshot  because i have the same data in the 2 sides, is it possible ?

Thx

Jim

View 13 Replies


ADVERTISEMENT

Replicate Column To Subscriber - Even It If Is Unchanged In UPDATE Statement

Jan 12, 2007

Set publisher database table column to 1.
Replicate table to subscriber (column is also 1 on subscriber once it is replicated).
Set subscriber database column to 2.
Update publisher database column to 1 (even though it is already 1).
Change is NOT replicated to subscriber (it stays at 2).

This means that replication is comparing the insert statement to its current value in the database.
Is there any way to change this behavior? We want the the column to replicate to the subscriber.

View 9 Replies View Related

How To Create An Object Without Being The Owner Of The Schema

Apr 6, 2006

Hi

I have a schema called Accounts owned by fred

User bob has create procedure permission as follows:

grant create procedure to bob

bob would like to create a procedure in schema Accounts.

When he issues create proc Accounts.sp_proc.... it fails with:

Msg 2760, Level 16, State 1, Procedure sp_proc, Line 3
The specified schema name "Accounts" either does not exist or you do not have permission to use it.


What permission do I need to grant bob in order to allow this?

Thanks

View 4 Replies View Related

Tempoary Table Question - How To Create One With The Same Schema As An Existing Table?

Jul 28, 2006

Hello,

I'd like to create a temporary table with the same schema as an exiting table. How can I do this without hard coding the column definitions into the temporary table definition?

I'd like to do something like:

CREATE TABLE #tempTable LIKE anotherTable

..instead of...

CREATE TABLE #tempTable (id INT PRIMARY KEY, created DATETIME NULL etc...

I'm sure there must be a simple way to do this!

Many thanks,

Ben S

View 3 Replies View Related

Object Reference Not Set To An Instance Of An Object When Retrieving Data/Schema In Design Time

Oct 11, 2006

Hi There,This is related to a ms access database but since I use the SqlDataSource control I thought I should post here.I have a project that I was working on with this ms access db and using sql controls, everything was working just finesince one day I started getting "Object reference not set to an instance of an object" messages when I try to designa query or retrieve a schema,  nothing works at design time anymore but at runtime everything is perfect, its a lotof work for me now to create columns,schemas and everything manually, I've tried reinstalling visualstudio, ado componentsbut nothing seems to fix it, did this ever happen to any of you guys?any tip is really appreciated  thanks a lot 

View 2 Replies View Related

Changing The Schema Ownership On Subscriber

Aug 18, 2006

Hi,

I have a replication in which publisher, distributer and subscriber all runing on sql server 2005. all the tables that needs to be replicated are under 'dbo' schema on publisher.

Subscriber is a datawarehouse so i dont want to put tables coming from a system to go under dbo schema as there might be other application replicating same name tables to warehouse. i have created a schema for my application on warehouse but dont know how to tell replication to create tables under application schema created on subscriber. I am using snapshot replication that can be reinitialized if required.

any help will be appriciated.

Cheers,

Furrukh baig

View 1 Replies View Related

Replication - Can Subscriber Objects Be Pre-existing?

Aug 15, 2006

My manager does not want to go through the process of moving 40 GB of data to the subscriber database over the network as would occur during the initialization phase of replication (exact method of replication has yet to be determined). The subscriber db is for Web Access and will be read-only. He wants to back up a db and use tapes to restore the db on the subscriber db server, and then activate replication. I have told him that you have to allow SQL Server to create the objects on the subscriber side and you have to allow SQL Server to control the data flow, that manually creating the objects on the subscriber side will not work. He says that I am incorrect.

Who is right? I haven't been able to find an answer from the Microsoft site and news groups.

Thanks,

View 1 Replies View Related

How To Reflect Schema Changes At Subscriber Using Transactional Replication

May 16, 2007

Hi

I need to setup transactional replication for a production server.

The tables (articles) at publisher being replicated can expect schema changes.



Is there any way to reflect schema changes at subscriber using transactional replication.



Early Thanks,

Salman Shehbaz.

View 1 Replies View Related

The Schema Script 'Course_2.sch' Could Not Be Propagated To The Subscriber.

Dec 12, 2005

hi,

View 15 Replies View Related

Error While Merging Snapshot Containing A CLR Assembly Schema At The Subscriber

Sep 26, 2007



Hi ,

I urgently need a solution for this. I have configured merge replication between a webhoster and a local machine
and it is working perfectly but when I am adding an article (table) which has a CLR assembly associated with it,
the merge replication is failing saying it cannot apply the schema of the CLR assembly at the client. I think Microsoft
supposedly says in it's documentation that merge replication supports CLR assemblies. I have recreated the snapshot
after selecting the table (article) and I have reinitialised the subscription also but it is just not working. It is the simplest
of replication with just one publisher and one subscriber.

Thanks,
Andy

View 2 Replies View Related

Minimizing Penalty (weighted Sum Of False Positives Plus False Negatives)

May 25, 2006

I am using Naive Bayes, Decision Trees, and Neural Net (SSAS 2005) to predict which of two states each record belongs to.

How can I enforce a different penalty for a false positive versus a false negative ?  (I am assuming that in some sense the mining algorithms can then minimize the total penalty).

View 5 Replies View Related

Renaming An Existing Schema

Oct 9, 2007

How to rename an existing schema in SQL 2005?



My guess is may be using ALTER SCHEMA but books online does not have any info or syntax.


Does all securables within that schema will reflect the new schema name?

View 7 Replies View Related

To Enable DTD Processing Set The ProhibitDtd Property On XmlReaderSettings To False And Pass The Settings Into XmlReader.Create

Apr 30, 2007



I run a very large dataset to print whole bunch of pages. It is giving me this error. I have done all the solutions provided in this msdn forums but still this error is cropping up.



Please help.

View 1 Replies View Related

How Do I Upgrade An Existing Database Schema?

May 8, 2006

I have written some software using .NET 2.0, a WinForms app, which uses SQL Server Express as a database. Although I've done my best to set up the database to take into account all of the features, etc., after releasing the first version, I need to make some changes to the database schema, but want to do so without wiping out the entire database for existing users. How do I go about upgrading the database schema for users who are already using the software? I'm thinking I should start by writing a helper app to do so whose sole purpose is to upgrade the schema. The app would be run at install-time, but I don't have any idea how to actually upgrade the schema. I am using C++/CLR .NET, but examples in other .NET languages are more than welcome. Any help is greatly appreciated. Thanks!

View 1 Replies View Related

Creating An Existing Db Schema Baseline

Jul 20, 2005

What is the best method of creating schema creation scripts that can bestored into a version control system. The process of using em togenerate a script is not an appealing option. I am still learning theMS Sql sys tables and have not found a useful list of all the codes &types to join the tables etc.mike--Posted via http://dbforums.com

View 2 Replies View Related

VS 2005 Error 'Object Reference Not Set To An Instance Of An Object' With Integration Services Project Create Failure

May 22, 2008



Just installed VS 2005 & SQLServer 2005 clients on my workstation. When trying to create a new Integration Services Project and start work in the designer receive the MICROSOFT VISUAL STUDIO 'Object reference not set to an instance of an object.' dialog box with message "Creating project 'Integration Services project1'...project creation failed."

Previously I had SQLServer 2000 client with the little VS tool that came with it installed. Uninstalled these prior to installing the 2005 tools (VS and SQLServer).

I'm not finding any information on corrective action for this error.

Any one have this problem and found the solution?

Thanks,
CLC

View 1 Replies View Related

Unable To Create Subscriber

Mar 23, 2007

Dear Friends,

I have two different sql servers one two different domains connected by internet. Iam working on Doman-A. Both sql server's are 2005

Domain Name System Name Sql Instance Name Port No

Domain-A SysA(IP:202.187.65.124) SqlA 1215

Domain-B SysB(IP:102.45.68.125) SqlB 1465

Intially I was unable to connect from SysA to SysB through sql management studio. But after giving the connection string as 102.45.68.125SqlB,1465 I was able to connect. Now my main problem is with the replication only. I had configured Publisher and Distrbutor on SysA. I want the subscriber to be SysB. But when I try to configure the subscription in the New Subscription Wizard from SSMS installed on SysA and try to Configure the subscription I get the following error message:

TITLE: New Subscription Wizard
------------------------------

SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'SysBSqlB'. (Replication.Utilities)

Plz help me guys.

Thanking you

Chandra Mohan N

View 10 Replies View Related

Need Help With Select Permission Denied On Object 'abc', Database '123', Schema 'dbo'

Mar 12, 2007

 
I am running a C# asp.met application which most of the application is running ok but several of my aspx. pages are giving me this error. I am currentyly running MS-SQL 2005 Dev ed. using VS.net 2005. I have turned on access in role to everything and still am getting this error. can someone help me please?

View 1 Replies View Related

The SELECT Permission Was Denied On The Object '', Database '', Schema 'dbo'.

Apr 15, 2008

 hay there...i'm developing a website using visual studio 2005, when i run it from VS it works fine and it can access the DB.but when i make an alias and run it directly from localhost ..i keep getting this message when i try to fill a DATASET ..Line 198: cmd.CommandText = "Select Line From Buses";Line 199: da.SelectCommand = cmd; Line 200: da.Fill(ds);can anyone help me ?thanx 

View 10 Replies View Related

When To Use Fully Qualified Names ([database].[schema].object)

Dec 29, 2006

I wihsh to discuss whether to use fully qualified names:[database].[schema].objectof objects to operate (create, query..) on is good or not?If someone change order of sql code blocks in my script - this may causelose of it's context (like: use master / use <mydb>..). I wish to have mysript independed on changes like this and always produce correct result.Does using full name make use of 'use <db>' statement unnecessary?

View 8 Replies View Related

Sql 2005 Management Studio And Changing Object's Schema

May 4, 2006

Using a query like



"ALTER SCHEMA TestSchema TRANSFER dbo.table1"



I can easily move "Table1", with schema "dbo", into schema TestSchema. But I can't see how to do it using only the GUI tools provided in Management Studio. Any ideas?



TIA,

Barkingdog

View 1 Replies View Related

Replication :: Not Create New Constraint Range For Subscriber

Jul 14, 2015

I have a merge replication in place.  I increased the identity_range to 100000 for a table.  I have done this both ways, via the properties of the publication on SSMS, and via TSQL.  I have call sp_adjustpublisheridentityrange.  Then I recreated the sanpshot.  EXEC sp_adjustpublisheridentityrange @table_name = N'Label', @table_owner = N'caseup';but after synchronization, the range defined in the table's constraint has not changed and now all of the identity values are used up.  All inserts are failing.What needs to be done to force the publisher to recreate the identity range on a subscriber(s).

View 3 Replies View Related

The Select Statement Was Denied On The Object 'table Name' , Database 'db Name', Schema 'dbo'

Nov 12, 2007



Hi,

I have a select statement running on the client machine linking to different tables in 1 database. All with the same schema. When I ran it, i had this error. I had trial and error, removing 1 table at a time until i hit the one which is causing it. when i removed it, everything's ok. i just wonder if all the tables were using dbo schema what is causing this particular table to throw this error?

cherriesh

View 1 Replies View Related

The SELECT Permission Was Denied On The Object 'tblName', Database 'dbName', Schema 'dbo'

Nov 9, 2007

Hi,

I'm in need of a few more pointers when it comes to SQL Server 2005 Security setup for accessing a database through IIS web services. There's loads of great advise in these forums which I've followed so pls forgive me if I've missed a post that finally resolves this. I know I'm so close but it feels so very far...

Anyhow, here's the set up:
- Server 2003 / SQL Server 2005 / .NET 2.0 / Visual Studio 2005 / Client XP PC

The story so far:
- Built an ASPX website in VS2005 on a client PC that connects to a SQL2005 db. No probs during development.
- Copied website to WS2005 & configured IIS accordingly. No probs browsing non-db webpages.

The problem:
As soon as I browse to a page that extracts data from the db I get the following error message..


[SqlException (0x80131904): The SELECT permission was denied on the object 'tbl_location', database 'SmartDMA', schema 'dbo'.]

...plus a whole load of code that I've seen plastered over lots of forums.

My configurations:
- The website is in the default SQL Application Pool that has the identity set to 'Predifed: Network Service' (as I'd previously has a similar error; SQLException (blah blah): Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection)

- IIS Website ASP.NET is v2.0.50727
- Website Authentication Methods / Enable Anonymous Access (ticked) Username: IUSR_SERVERNAME Password: *********. Intergration Windows Authentication (ticked).
- SQL Server Mngt, Secuirty / Logins / NT AUTHORITYNETWORK SERVICE lists the db in question with dbo as the Default Schema & public ticket as the db role membership.
- connectionString="Data Source=SERVERNAME;Initial Catalog=DBNAME;Integrated Security=true" providerName="System.Data.SqlClient"/>


What I've tried already based on forums advise:
- Changing Server Properties to SQL Server & Windows Authentication mode.
- Rather than using Integrated Security I've tried the SQL 'sa' account, but not 100% is I did that right (still got the same error anyway).

The rest of the advise I've read appears to confirm the rest of my settings, but I'm still getting the error.

Can anyone please shed any light on what I'm missing here. Feel free to ask questions on any configuration settings I've missed that may help.

Many thanks in advance..

View 4 Replies View Related

SCD Not Recognizing Unchanged Rows

Apr 27, 2007

My dimension table has a column called AccountNumber varchar(20), which is the business key.

I use SCD task to manage TYPE 2 changes on a particular column.



However, the SCD component doesn;t seem to recognize the change on the column. The datatype of the column in the dimension table and the datatype of the input column is same.



The datatype for the business key , which is varchar(20) is also same as the input column business key.



However, when I ran SQL profiler to see what is going on, I found that the SELECT statement

that was issued with the business key in the WHERE clause has char(20) instead of varchar(20)

for the business key. So, for example if the account number in the dimension table is '1234',

the SELECT statement is checking for '1234 '.



I trimmed the incoming string but I still get the problem. Any help would be appreciated.



Thanks,
SJ

View 4 Replies View Related

Create Schema

Feb 26, 2008

what wrong ?

IF NOT EXISTS ( SELECT * FROM sys.schemas WHERE [name] = 'ATypes' )
BEGIN
CREATE SCHEMA [ATypes] AUTHORIZATION Owner_SchATypes;
END
GO

why I get an error ?


Noam Graizer

View 3 Replies View Related

How To Create A New Schema

Apr 24, 2007



How can I create a new schema inside a database from Managment studio express.



Also can someone explain me the concept of schema clearly. If database is like a house, then is schema like a room in it ??

View 3 Replies View Related

SQL Help. CREATE SCHEMA

Nov 2, 2007

I€™m trying to create an index on a view. I get the error that €˜the view is not schema bound.€™

Soooo, I try to put it in a schema.

This is the syntax I am using -

CREATE SCHEMA AUTHORIZATION painter
CREATE VIEW large_paints AS
SELECT paint_id,color FROM paint WHERE paint_size=100
CREATE INDEX idx on large_paints (paint_id);

I get the error - Incorrect syntax near the keyword 'INDEX'.

Any ideas?

View 1 Replies View Related

Merge Join: Nr Of Output Rows Unchanged When Amount Of Input Changes

May 25, 2007

Dear all,



I created a package that seems to work fine with a small amount of data. When I run the package however with more data (as in production) the merge join output is limites to 9963 rows, no matter if I change the number of input rows.



Situation as follows.



The package has 2 OLE DB Sources, in which SQL-statements have been defined in order to retrieve the data.

The flow of source 1 is: retrieving source data -> trimming (non-key) columns -> sorting on the key-columns.

The flow of source 2 is: retrieving source data -> deriving 2 new columns -> aggregating the data to the level of source 1 -> sorting on the key columns.

Then both flows are merged and other steps are performed.



If I test with just a couple of rows it works fine. But when I change the where-clause in the data source retrieval, so that the number of rows is for instance 15000 or 150000 the number of rows after the merge join is 9963.



When I run the package in debug-mode the step is colored green, nevertheless an error is displayed:

Error: 0xC0047022 at Data Flow Task, DTS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Merge Join" (4703) failed with error code 0xC0047020. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.



To be honest, a few more errormessages appear, but they don't seem related to this issue. The package stops running after some 6000 rows have been written to the destination.



Any help will be greatly appreciated.



Kind regards,



Albert.

View 4 Replies View Related

Create Schema Error

Mar 25, 2008

IF NOT EXISTS (SELECT 1 FROM Sys.Schemas WHERE [Name] = N'HR4')
CREATE SCHEMA HR4 AUTHORIZATION [dbo]

The above statements gives me an error saying "Incorrect syntax near schema". But the following code works fine.


DECLARE @sql varchar(100)
set @sql='CREATE SCHEMA HR4 AUTHORIZATION [dbo]'
IF NOT EXISTS (SELECT 1 FROM Sys.Schemas WHERE [Name] = N'HR4')
exec(@sql)

Any ideas on what is causing this error?

Thanks!

View 1 Replies View Related

Create A Default Schema

May 22, 2008



I Would like to create a schema sample and make it as default schema instead of dbo.

If a user logs in and creates a table like create table t1 (no int ) .
it would be assigned to sample schema and displayed as sample.t1 not dbo.t1.


How to set the user created schema as primary schema.

View 9 Replies View Related

Using Existing Database Or Should Create New One

May 7, 2008

I've plan to writing Stored Procedure ("SP"). This SP contains program that produce a result and this result will insert into already define summary table. This SP will running every 30 minutes.

What is the best solution? I should put this already define summary table in existing Database or i should create a new database and create the summary table into this new database. Can i using ReportServer Database to create this summary table?

I'm using SQL Server 2005.

View 4 Replies View Related

Create A Empty DB From A Existing DB

Dec 26, 2005

how to: create a empty DB from a existing DB keeping all fields and keys intact

View 3 Replies View Related







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