Bug In Management Studio : Scripting Of Publication Generates Wrong Value For @schema_option In Sp_addarticle Statements

Jan 17, 2007

Hi everybody,

I found the following bug in Management Studio:
I add an article with sp_addarticle and a value of 0x00 for @schema_option or via the wizard with all article properties set to false.
Then I script the publication to a file. The result contains a sp_addarticle statement with @schema_option = 0x0000000000004071, which must be wrong.
To prove that I recreated the article with the generated script and checked the article properties. As I feared 4 of the properties ('Copy clustered index', 'Copy nonclustered index', 'Copy unique key constaints' and 'Convert data types') are set to true!

Is this a known bug ?

wolfgang Kunk

View 6 Replies


ADVERTISEMENT

Oracle 9i -&&> SQL Server 2005: Schema_option Parameter When Adding An Article To A Publication

Jul 13, 2006

First of all; My Oracle publication works fine when I don't explicit specify the shema_option parameter for the articles I'm adding to the publication. The reason why I then want to explicit specify the parameter is as following.

I'm developing a replication solution to get data from our production server (Oracle) to our Data Warehouse (SQL Server). The SQL Server (and the Data Warehouse code) uses the SQL_Latin1_General_CP1_CI_AS collation. When I don't explicit specify the schema_option, the nvarchar columns of the replicated tables are created using the SQL_Latin1_General_CP1_CS_AS collation and this results in some comparison errors, when for instance a select statement is trying to compare two nvarchar strings using different collations.

I've tried to specify the schema_option parameter as "@schema_option = 0x80" (Replicates primary key constraints.) to avoid the use of the SQL_Latin1_General_CP1_CS_AS collation when creating the destination tables - I'm not sure it's enough? No matter what, I'm getting an error when I'm doing it (see below).

Message
2006-07-13 12:00:15.529 Applied script 'ITEMTRANSLATION_2.sch'
2006-07-13 12:00:15.544 Bulk copying data into table 'ITEMTRANSLATION'
2006-07-13 12:00:15.544 Agent message code 20037. The process could not bulk copy into table '"ITEMTRANSLATION"'.
2006-07-13 12:00:15.591 Category:NULL
Source: Microsoft SQL Native Client
Number: 208
Message: Invalid object name 'ITEMTRANSLATION'.
2006-07-13 12:00:15.591 Category:NULL
Source:
Number: 20253

The questions are now whether I actually have a schema_option alternative for Oracle Publishing? If so, what is the solution, and eventually how can I avoid the error stated above?

If I'm not able to avoid the article columns getting created with the "wrong" collation, is there then any other obviously solution to the problem?

Thanks!
Best regards,

JB

View 5 Replies View Related

Bug In MS Management Studio For SQL-Server 2005 While Creating A Publication!

Dec 21, 2006

Hello,

I found a bug in Management Studio, which can be reproduced with following steps:

1. Create a new publication with the 'New Publication Wizard'
2. Select a database which contains at least 2 tables.
3. Select 'transactional publicatioon'
4. Select at least 2 tables as articles
5. Set article properties for all table articles
6. Change 'Statement Delivery' to 'Insert statement', 'Update statement' and 'Delete statement' and save the article properties.
7. If you now check the properties for a single article you find that the 'Statement Delivery' is set to 'Do not replicate...'. If you generate this publication and create a subscritpion you will see, that actual no replication take place.

It took me a while to find out why my replication doesn't work! :-((

Wolfgang Kunk

PS : Management Studio version is 9.00.1399.00

View 6 Replies View Related

Management Studio Displays Wrong File Name In Tab

Feb 19, 2007

Issue:
SQL Server 2005 Management Studio displays the old filename in the tab at top if you open a .sql file and then do "file save as". I have upgraded to SP2 in hopes that this behavior would be corrected but to no avail.

View 4 Replies View Related

How Can I Generate INSERT Statements From Management Studio

Aug 25, 2007

Hello All,

How are you guys doing? Hope all is well.
This is my problem...I accidentally deleted a bunch of my SQL scripts and would like to generate the INSERT statements from Management Studio. I am currently using SQLExpress. Is there a way I can accomprish my task? Kindly advise.

Thanks a bunch!
Mohammed

View 8 Replies View Related

Common Table Expression (CTE):How To Delete A Wrong CTE That Is In SQL Server Management Studio Express (SSMSE)?

Feb 25, 2008

Hi all,

I ran the following CTE sql code:


Use ChemDatabase

GO

WITH PivotedTestResults AS

(

SELECT TR.AnalyteName, TR.Unit,

Prim = MIN(CASE S.SampleType WHEN 'Primary' THEN TR.Result END),

Dupl = MIN(CASE S.SampleType WHEN 'Duplicate' THEN TR.Result END),

QA = MIN(CASE S.SampleType WHEN 'QA' THEN TR.Result END)

FROM TestResults TR

JOIN Samples S ON TR.SampleID = S.SampleID

GROUP BY TR.AnalyteName, TR.Unit

)

SELECT AnalyteName, UnitForConc,

avg1 = abs(Prim + Dupl) / 2,

avg2 = abs(Prim + QA) / 2,

avg3 = abs(Dupl + QA) / 2,

RPD1 = abs(Prim - Dupl) / abs(Prim + Dupl) * 2,

RPD2 = abs(Prim - QA) / abs(Prim + QA) * 2,

RPD2 = abs(Dupl - QA) / abs(Dupl + QA) * 2

FROM PivotedTestResults

GO

//////////////////////////////////////////////////////////////////////////////////////
I got the following errors:

Msg 207, Level 16, State 1, Line 9

Invalid column name 'Unit'.

Msg 207, Level 16, State 1, Line 3

Invalid column name 'Unit'.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////

I guess that I had "Unit" (instead of "UnitForConc"), when I executed the sql code last time!!!???
How can I delete the old, wrong CTE that is already in the ChemDatabase of my SSMSE?

Please help and advise.

Thanks in advance,
Scott Chang

View 5 Replies View Related

In SqlServer Management Studio Express, Server Type Option Is Greyed Out, Also Publication Option Missing

Apr 27, 2008

Hi everyone In my SqlServer Management Studio Express, on start up it shows the server type option, but greyed.So that value is fixed to database engine. ( I'm trying to work on an SqlServer Compact Edition database through the SSMStudiothat's why I'm trying to get this to change.)Besides, after I connect i go to the Object Explorer, expand the server node, and go to Replication.When i expand replication, i get the "Local Subscription" option, but nothng for Publication.( I want to work on Merge Replication, that's why I desparately need Publication to work)Am i missing something here? I did not install SqlServer separately, I only have what comes bundled with the Visual Studio  2005 Setup.

View 2 Replies View Related

Computer Generates Wrong Answer Of Decimal Values

Feb 23, 2008

hi, i'm using the following code to generate the value of a column in a database, where the colums value is dependent upon the multiplication of two other cells in the same row. When I execute the statement, it will work fine for whole numbers, but it does not work correctly for decimal values. All columns are of type varchar(50). An exmple.................It just multiplied 200 by 2.50 and returned 600SqlCommand objCmd2 = new SqlCommand("UPDATE Portfolio SET Current_Worth=Current_Price*Number_Of_Shares WHERE Name_Of_Asset LIKE '%'+@Name_Of_Asset+'%'", objConn);objCmd2.Parameters.AddWithValue("@Name_Of_Asset", DropDownList1.SelectedValue);objConn.Open();objCmd2.ExecuteNonQuery();objConn.Close(); Any ideas? 

View 5 Replies View Related

Management Studion Express Alongside Full-blown Management Studio?

Oct 9, 2006

Is it possible to run both Sql Server Management Studio: Express and full blown side by side?

I am developing with the full blown product but would like to test Management Studio Express on the same box.
Is this possible?

Thanks

Eric

View 3 Replies View Related

SQL Server Management Express Studio Management Tools

Apr 5, 2007



I have recently installed the SQL Server Management Studio Express but I do not find Management Tools in order to create scheduled backups and shrinking of the databases. I was under the impression that this should be included in the Management Studio. I use the SQL 2005 Express for smaller customers who run the SQL on a desktop unit. I need a way to backup the data to a server machine for backup purposes. I have uninstalled and reinstalled to no avail.

View 7 Replies View Related

Visual Studio Database File And SQL Server Management Studio Express Question

Mar 17, 2007

I have a database in my "App_Data" folder of my visual studio project.  I can view it fine in Visual Studio's built-in tools for managing a database attached to a solution.  However i recently started playing around with the SQL Server Management Studio Express program.  When i attach my database to Management Studio, and try to run my program it crashes.  I think it might be a permissions error?!? When i detatch it and reattach it in visual studio it runs fine again.   Any suggestions? ThanksJason 

View 1 Replies View Related

Visual Studio 2005 Standard And SQL Server Management Studio?

Sep 4, 2007

I am new to visual studio and I am still not sure of all its components and features.

I installed visual studio 2005 standard edition but cannot find SQL Server Management Studio?

I guess this must be because it is not included with Visual studio 2005 standard. Is it included with VS 2005 professional?

I want to add pictures of products to my shopping site using an SQL database and I’ve been told that SQL Server Management studio is required as it is a graphical tool.

How would I go about obtaining the SQL server management studio. There seems to be different versions of SQL server that it is confusing to know which one to purchase.

Will the SQL server 2005 version that comes with Visual studio standard be sufficient for me now right? I want to create a shopping site with hundreds, perhaps even thousands of products. I want to use an SQL server 2005 database. The database will include ‘dynamically generated’ product images if that is the correct terminology.

My goodness, it seems I still have so much to learn.

Thanks

View 1 Replies View Related

The Database Created Using Management Studio Cannot Be Connected To Visual Studio???help

May 13, 2008

 
 
I have created a database under management studio and i want it to be connected in visual studio but it failed
the error msgs said that the database can't be connected coz the database with same name exits but that is not true

View 2 Replies View Related

How Do I Get The Database That I Am Using In Visual Studio Into My SQL Server Management Studio?

Sep 12, 2007

How do i get the database that i am using in visual studio into my SQL server management studio?
i need to create some scripts to create stored procedures on a live server.

View 1 Replies View Related

Is Management Studio Express Compatible With Visual Studio?

Sep 13, 2006

I have installed Visual Studio 2005 which includes SQL Server Express but not the Management Studio.

Can I install SQL Server Management Studio Express?

View 1 Replies View Related

What Is The Different Between Manangement Studio And Management Studio Express

Jan 18, 2007

In Microsoft.COM website do we have a comparision between Management Studio and Management Studio express in term of functions and features of the tool ? (Not SQL Server and SQL Server Express !)

View 1 Replies View Related

Sp_addarticle, Proc Has Bug With No Know Fix

Jan 14, 2004

I have found a bug with the sp_addarticle procedure and have not had any success finding a fix for it. The bug only exists whenever I am adding an article that is vertically partitioned and uses a DTS package to do the processing. In this particular case, I am using snapshot repl. Has anyone experienced this issue before?

Here is the statement...

exec sp_addarticle @publication = N'PublicationName', @article = N'ArticleName', @source_owner = N'dbo', @source_object = N'ArticleName', @destination_table = N'ArticleName', @type = N'logbased', @creation_script = null, @description = null, @pre_creation_cmd = N'drop', @schema_option = 0x00000000000000F1, @status = 16, @vertical_partition = N'true', @ins_cmd = N'CALL sp_MSins_ArticleName', @del_cmd = N'SQL', @upd_cmd = N'SQL', @filter = null, @sync_object = null, @auto_identity_range = N'false'

Here is the error that gets produced...
Server: Msg 156, Level 15, State 1, Procedure syncobj_0x4344414345344530, Line 1
Incorrect syntax near the keyword 'from'.


Any help would be greatly appreciated!

View 1 Replies View Related

Visual Studio 2005 Shows Wrong SQL Server Versions

Apr 2, 2007

Visual Studio 2005 shows SQL Server 2005 installed product versions differently than the actual. As seen below VS2005 displays 9.00.3042.00 as the version of SQL Server 2005 however it is 9.00.3050.00 in SQL Server Management Studio. [Look at Installed Products section after selecting About MS Visual Studio from Help menu ]



SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 9.00.3042.00

SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 9.00.3042.00

SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 9.00.3042.00



I have VS2005 SP1 and SQL2005 SP2 installed. Why VS2005 reports versions wrong?

View 1 Replies View Related

Sp_addarticle And @ins_cmd, @del_cmd, @upd_cmd

Nov 1, 2004

I had been asked to add a new article to an established transactional replication. I modify and ran the sample provided from microsoft.

<code>
EXEC sp_addarticle
@publication = N'ACTION',
@article = N'ACTION',
@source_owner = N'dbo',
@source_object = N'ACTION',
@destination_table = N'ACTION',
@type = N'logbased',
@creation_script = null,
@description = null,
@pre_creation_cmd = N'drop',
@schema_option = 0x00000000000000F3,
@status = 16,
@vertical_partition = N'false',
@ins_cmd = N'CALL sp_MSins_ACTION',
@del_cmd = N'CALL sp_MSdel_ACTION',
@upd_cmd = N'MCALL sp_MSupd_ACTION',
@filter = null,
@sync_object = null,
@auto_identity_range = N'false'
</code>

I was under the impression that once I ran the script, the insert, update and delete command will be generated by SQL Server for me. However, that's not the case. Am I missing anything? How do I add the new article so that the insert, update and delete stored procedure will be autogenerated?

Any help will be appreicated.

View 2 Replies View Related

Sp_addarticle: What's The Difference Between @source_object And @sync_object?

Nov 27, 2005

BOL says:

@source_object - Is the table or stored procedure to be published.
@sync_object - Is the name of the table or view used for producing the data file used to represent the snapshot for this article.

I get how transactional replication is tied to changes in a single table or indexed view (the "source_object"). But what is the role of the sync_object? It appears as if the sync_object can be any simple (non-indexed) view. Hilary Cotter uses it to replicate a calculated field (the number of titles associated with each author) in "Case 4" in this article: http://www.dbazine.com/sql/sql-articles/cotter1.

Does the replication pull data from the sync_object whenever it replicates data, even though BOL says that it is used only for the snapshot data? Am I lacking some fundamental understanding of what the snapshot data is? Isn't it a snapshot of all the data at a particular point in time? If the snapshot contains a calculated field, don't the subsequent replicated transactions pulled from the transaction logs also have to be able to calculate that field?

Thanks,

-=michael=-

View 4 Replies View Related

Management Studio

Jan 12, 2007

dont know y, but i have prob. installing MS Management studio....After a hard drive  failure I was forced to reinstall everything... :( The problem is that after installing vs2005 proffesional edition I  installed the sql server 2005 trial edition and everything was fine during the installation.When I looked for the Management studio it wasnt there for me :( I uninstalled and reinstalled trying the full installation but results was the same, no Management studio!!!After uninstalling the SQL server trial edition I installed the Management studio express and it works. except that from some reason I cannot browse my XP user folder which has no password protection.. :( Any idea for installing the SQL trial edition including the Management studio ???Why can't I browse my XP folder with Management studio express ???Where can I download Management studio (non express version)?? regards 

View 2 Replies View Related

Management Studio

Nov 30, 2007

Hi

I am moving towards managing sqlserver databases and i basically come from a command line background.

Can you please tell me some of the tasks that needs to be done using command line only in sqlserver and wherein management studio falls short.

regards
db2hrishy

View 6 Replies View Related

Management Studio

Apr 25, 2008

I am running management studio from my desktop but I think I need sp2 is there a sp2 download for management studio that isnt management studio express?

View 2 Replies View Related

Management Studio, Why O WHY!

Sep 24, 2007

I like some of the new features in sql2005 management studio, but WHY do you have to right-click -> Modify to view the stored procedure code?

It is SO annoying, previous versions was a simple and quick-double click.

To me this is a major blunder!

Anyone else agree with me?

View 16 Replies View Related

Where Is Management Studio??

Oct 31, 2007

I just installed the Developer Edition of SQL Server 2005 on my machine and updated it to all available patches through Microsoft Update. I cannot find the SQL Server Management Studio on my machine? How can I get this? Help mentioned where its exe is located but I cannot find it there either.

View 4 Replies View Related

Management Studio

Feb 20, 2007

Hello!

What are the differences between "SQL Server 2005 Management Studio" and "SQL Server Management Studio Express"?

I have an installation of SQL Server 2005 Standard Edition and can only find the Management Studio Express!?

How can I install the "not-Express-version" ?

Regards
CSharpNewbie22

View 3 Replies View Related

When Will We Get A Management Studio For SQL Everywhere

Sep 12, 2006

From the outset this database has massive problems

Firstly it is hard to design, change and administer

When will we get a tool to allow us to visually manipulate it

View 4 Replies View Related

About Sql Management Studio?

Feb 20, 2007

i have a problem regarding sql management studio....

1. I can't create new server, i'd follow the tutorial in video. but it doesnt work. or may be i must install the IIS?

2. i create a new database named sample (sql management studio) and add some tables and sort of data. how can i deploy this database so that i can bind/connect to my program.

2 question for now.

thx in advance

View 2 Replies View Related

SQL Management Studio X64

Nov 15, 2007

We are use Vista X64 and SQL-Server 2005 X64 Developer Edition. We are able to connect to a sql2005 server x32 server using SQL 2005 management studio, 32-bit version. From the x64 box (vista x64 with sql x64), we are able to connect to the SQL 2005 32-bit server version using sqlcmd and telnet. But, we are having issues connecting to the 32-bit version of SQL 2005 using the x64 sql management studio GUI. I look all over the internet and the SQL BOL and I was not able to find any compatibility issues with the SQL Management Studio x64 been documented. I am thinking that the reason for the issue is because the SQL management studio is trying to connect using native x64 client drivers. If that is the case, is there another method of connecting to a x32 SQL server. I see that the only way to approach this issue is to install the 32-bit version of the SQL client tools on the x64 system. Thanks

P.S. all servers are using SQL SP2 ( no Cumulative Update 4)

View 2 Replies View Related

Getting Management Studio To Use 3.5

Dec 3, 2007

How can I get sql Management Studio (2005) to use Sql Compact 3.5? It's been working fine with 3.1, but now when I upgrade my own code to use 3.5 and create a new DB then management studio says it can't open it as it's the newer version (3.5xxx and it wants 3.0xxxx)

Exact text is:


You are trying to access an older version of a SQL Server Compact Edition database. If this is a SQL Server CE 1.0 or 2.0 database, run upgrade.exe. If this is a SQL Server Compact Edition 3.0 or later database, run Compact / Repair. [ Db version = 3505053,Requested version = 3004180,File name = C:foo.sdf ] (SQL Server Compact Edition ADO.NET Data Provider)

View 10 Replies View Related

SQL Management Studio

Jul 2, 2007

Installed SQL 2005 standard but the management tools did not install. The admin downloaded the SSMSE (Express version) which does not allow us to manage Analysis Services. We've tried un-installing the SSMSE and then tried to install from the Client Components on the installation disc, the Management console and it doesn't install. Any ideas on how to get the full version installed? Re-installing SQL Server 2005 is not an option as it's been configured and data is now residing in databases.

View 3 Replies View Related

Where Is Management Studio

Apr 11, 2006

I have been working this for 2 days on my XP SP2 machine, AHHHHH !!

I tried running the SQL Server 2005 Tools install, and kept getting SQL configuration checker error with WMI. What finally got me around that was installing VS 2005. {without SQL Express} Ran the tools install, but not Management Studio, only the Configuration Tools on my menu. What the heck, tried running the full install, got the database engine, but still no Management Studio.

Tried uninstalling everything, everything is gone except the database engine.

Tried re-installing, still no luck.

Tried the command line to fix the shortcut to management studio as detailed in the setup help file:

setup.exe /qb REINSTALL=SQL_WorkBench REINSTALLMODE=S

NO LUCK. This is absolutely crazy, what year is this. It's as if something the setup program see's on my machine is blocking the install of management studio.


View 6 Replies View Related

Where Is Sql Management Studio?

Jun 17, 2006

I just installed VS2005 Pro and I also installed SQL 2005 dev edition from CD 1. I installed everything that I could, but after it finished, SQL Management Studio doesn't show up. Why isn't it in the list of available sql server 2005 programs and how do I get it there? Thanks.

View 7 Replies View Related







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