Wednesday, March 28, 2012
It's a bug?
documentation, I am unable to get the RS utility to accept more than one
global variable. I have decided that it is a bug, guys. Just FYI
--
Thanks,
CGWMy bad. It was a reseerved word problem. VERY sorry, guys.
--
Thanks,
CGW
"CGW" wrote:
> No matter what I try, after looking at various 'versions' supplied in MS
> documentation, I am unable to get the RS utility to accept more than one
> global variable. I have decided that it is a bug, guys. Just FYI
> --
> Thanks,
> CGW
Monday, March 26, 2012
It's a computed column processing bug?
Hello everybody!
I have question about indexed and not indexed Persisted columns on sql server 2005. It's a bug?
First?, my version of SQL Server is
Microsoft SQL Server 2005 - 9.00.3186.00 (Intel X86) Aug 11 2007 03:13:58 Copyright (c) 1988-2005 Microsoft Corporation Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
Now I create two tables and try four select queries:
Code Snippet
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET ARITHABORT ON
SET CONCAT_NULL_YIELDS_NULL ON
SET NUMERIC_ROUNDABORT OFF
SET QUOTED_IDENTIFIER ON
GO
create table t1 (id int primary key, id_bigint as cast(id as bigint))
GO
create table t2 (id int primary key, id_bigint as cast(id as bigint) persisted)
GO
select * from t1 -- (1)
-- Clustered index scan with two times Compute Scalar
GO
select * from t2 -- (2)
-- Clustered index scan with one times Compute Scalar
GO
create index IX_t2 on t2 (id_bigint)
GO
select * from t2 -- (3)
-- Index Scan with one times Compute Scalar
GO
select * from t2 where id_bigint = 0 -- (4)
-- Index Seek with one times Compute Scalar
GO
drop table t1
GO
drop table t2
GO
SET ANSI_PADDING OFF
1. I don't understand why access to computed column raise scalar computation wto times?
2. I don't understand why access to persisted computed column raise any scalar computation?
3. I don't understand why access to persisted computed column over index required any scalar computations?
Can anyone from Microsoft SQL Server Team told me about this mistake?
It's a BUG or I incorrect understand value of the "PERSISTED" word?
--
Thanks with avanced.
WBR, Roman S. Golubin
grominc[at]gmail.com
Bug request on SQL Server 2005 Feedback for this icident.
To solve this problem while Microsoft SQL Server Team not fix this bug, use update with triggers instead persisted computed columns.
--
WBR, Roman S. Golubin
73! GL! RA1OGE/3
|||It works.
Use 'WITH SCHEMABINDING'
Courtesy of Kent Tegels!
It's a computed column processing bug?
Hello everybody!
I have question about indexed and not indexed Persisted columns on sql server 2005. It's a bug?
First?, my version of SQL Server is
Microsoft SQL Server 2005 - 9.00.3186.00 (Intel X86) Aug 11 2007 03:13:58 Copyright (c) 1988-2005 Microsoft Corporation Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
Now I create two tables and try four select queries:
Code Snippet
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
SET ARITHABORT ON
SET CONCAT_NULL_YIELDS_NULL ON
SET NUMERIC_ROUNDABORT OFF
SET QUOTED_IDENTIFIER ON
GO
create table t1 (id int primary key, id_bigint as cast(id as bigint))
GO
create table t2 (id int primary key, id_bigint as cast(id as bigint) persisted)
GO
select * from t1 -- (1)
-- Clustered index scan with two times Compute Scalar
GO
select * from t2 -- (2)
-- Clustered index scan with one times Compute Scalar
GO
create index IX_t2 on t2 (id_bigint)
GO
select * from t2 -- (3)
-- Index Scan with one times Compute Scalar
GO
select * from t2 where id_bigint = 0 -- (4)
-- Index Seek with one times Compute Scalar
GO
drop table t1
GO
drop table t2
GO
SET ANSI_PADDING OFF
1. I don't understand why access to computed column raise scalar computation wto times?
2. I don't understand why access to persisted computed column raise any scalar computation?
3. I don't understand why access to persisted computed column over index required any scalar computations?
Can anyone from Microsoft SQL Server Team told me about this mistake?
It's a BUG or I incorrect understand value of the "PERSISTED" word?
--
Thanks with avanced.
WBR, Roman S. Golubin
grominc[at]gmail.com
Bug request on SQL Server 2005 Feedback for this icident.
To solve this problem while Microsoft SQL Server Team not fix this bug, use update with triggers instead persisted computed columns.
--
WBR, Roman S. Golubin
73! GL! RA1OGE/3
|||It works.
Use 'WITH SCHEMABINDING'
Courtesy of Kent Tegels!
Friday, March 23, 2012
It seems a bug of SQL Server 2005.
I do the following steps:
1:Use Manage Studio login the server with Integrated security.
2:Create a dabase named testdb;
3:Create a SQL Server login named amber ,and set it to be dbowner of testdb;
4:Create a SQL Server login named guxiaobo ,set it's default databse to be testbd,and in the testdb databse map login guxiaobo to user guxiaobo;
5:Close Manage Studio and reopen it ,this time use login amber log to the server.
6:In database testbd create a databse role role1 owned by dbo;
7:In database testdb create a schema schema1 owned by dbo;
8:Set user guxiaobo to be member of role1,and set guxiaobo's default schema to be schema1;
9:In the schema properties-schema1 dialog choose permissions,in the users or roles listview I add role1 to it.in the explicit permissions for role1 listbox,I choose select /update/insert/delete/view definition grant checkboxes.and apply the selects.
10:In the schema1 schema I create a table:create table a(a int ,b varchar(10));
11:In the dabase role properties-role1 dialog choose securables panel ,int securable listview I add the schema1.a table,and in explicit permissions for schema1.a I choose all for grant ,then apply the selects.
12:Now I use login guxiaobo to log into dabase and issue "select * from a",but got a error msg saying guxiaobo has not enough permission to select form table a.
Does anyone has found anything I missed?
And in step 11 ,I choose all the columns of table a for all permissions.|||Anybody helps ?Friday, March 9, 2012
Issue with identity column in a view
Thanks a lot, Greg!
Well, I have another question.
In SQL-2005, till SP2 version, there is a bug, dialed with treating an identity column in a view as an ordinary int column, when the compatibility verison of the DB is set to 80: http://support.microsoft.com/kb/920974
In SQL Server 2005 Express Edition CTP (since version 9.00.3027), which is available to download from Microsoft site, this bug was fixed.
Please tell if you know, how can I get an evaluation copy of any other edition of this version, where merge publication feature could be tested?
Creating a new thread since your question is a new topic.
This issue is fixed in the latest SQL Server 2005 SP2 CTP, you can access it and read about the fixes here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1055809&SiteID=1.
Friday, February 24, 2012
Issue Loading Data from Flat File
I have a source Excel spreadsheet with approx 30000 rows in it, I have saved this out using Excel 2003 as a csv file which contains all of the source rows.
Using a Flat File Source I am only getting approx 15000 rows through, I have re-saved the spreadsheet as csv and it stops at exactly the same point. However, if I use the excel spreadsheet as the source I get all 30000 rows.
I have checked the CSV at the relevant point and can see no reason why it would stop at that particular point.
I am experiencing a similar problem with another source file handled in exactly the same way.
Has anyone else experienced this?
Philip
UPDATE: looks like this could be a problem in Excel, Used a Excel Data source and a Flat File Destination to create the CSV, and my original Data flow now uses all the data
Philip Coupar wrote:
I have come across a strange bug that I can't get to the bottom of. I have a source Excel spreadsheet with approx 30000 rows in it, I have saved this out using Excel 2003 as a csv file which contains all of the source rows.
Using a Flat File Source I am only getting approx 15000 rows through, I have re-saved the spreadsheet as csv and it stops at exactly the same point. However, if I use the excel spreadsheet as the source I get all 30000 rows.
I have checked the CSV at the relevant point and can see no reason why it would stop at that particular point.
I am experiencing a similar problem with another source file handled in exactly the same way.
Has anyone else experienced this?
Philip
UPDATE: looks like this could be a problem in Excel, Used a Excel Data source and a Flat File Destination to create the CSV, and my original Data flow now uses all the data
I'm working with Philip on this. Basically it looks as though there's problem in the way that Excel saves stuff to csv. Anyone know why?
-Jamie
|||
We are experiencing the same exact problem. The CSV file imports fine using our old DTS Packages just not with the new SSIS packages we have created. I can provide sample csv files if needed.
If you have an update on this, please let me know.
|||Did you see the workaround that Philip posted (above)?-Jamie