Tuesday, March 27, 2012
Dropping and Creating of a Table.
of replication for SQL 2000 support the dropping and creating of a
table and have it replicated to the remote system?
Brandon,
I'm assuming you're talking about an existing publication. In transactional
this is possible using sp_addarticle, sp_addsubscription,
sp_refreshsubscriptions and the corresponding drop commands for the
converse. As far as I recall, snapshot also behaves this way but not merge.
I'll test this when I get a moment.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Wednesday, March 21, 2012
Drop table , procedure Problems
I'm creating table, procedure from my c# codings in sql server.
I'm having database owner rights.
My problem is sometimes the table, procedure is created with
username.tablename instead of dbo.tablename. so i'm unable to drop that
table or procedure while my c# program is run by some other user.Kindly
suggest me a way to create table, procedure as dbo.tablename,
dbo.procedurename.how to drop the tables and procedures created by an
another user.What are the rights i required to create table,procedure
as dbo.tablename, dbo.procedurename in sql server 2000
Thanks & Regards,
ManiBOL says
The dbo is a user that has implied permissions to perform all activities in
the database. Any member of the sysadmin fixed server role who uses a
database is mapped to the special user inside each database called dbo.
Also, any object created by any member of the sysadmin fixed server role
belongs to dbo automatically.
For example, if user Andrew is a member of the sysadmin fixed server role
and creates a table T1, T1 belongs to dbo and is qualified as dbo.T1, not as
Andrew.T1. Conversely, if Andrew is not a member of the sysadmin fixed
server role but is a member only of the db_owner fixed database role and
creates a table T1, T1 belongs to Andrew and is qualified as Andrew.T1. The
table belongs to Andrew because he did not qualify the table as dbo.T1.
The dbo user cannot be deleted and is always present in every database.
Only objects created by members of the sysadmin fixed server role (or by the
dbo user) belong to dbo. Objects created by any other user who is not also a
member of the sysadmin fixed server role (including members of the db_owner
fixed database role):
a.. Belong to the user creating the object, not dbo.
b.. Are qualified with the name of the user who created the object
<plmanikandan@.gmail.com> wrote in message
news:1163675950.788703.71100@.i42g2000cwa.googlegroups.com...
> Hi,
> I'm creating table, procedure from my c# codings in sql server.
> I'm having database owner rights.
> My problem is sometimes the table, procedure is created with
> username.tablename instead of dbo.tablename. so i'm unable to drop that
> table or procedure while my c# program is run by some other user.Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.how to drop the tables and procedures created by an
> another user.What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
> Thanks & Regards,
> Mani
>|||> Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.
CREATE TABLE dbo.tblname(...)
CREATE PROC dbo.procname ... AS ...
> to drop the tables and procedures created by an
> another user.
DROP TABLE username.tblname
DROP PROC username.procname
> What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
db_ddladmin, db_owner or higher.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<plmanikandan@.gmail.com> wrote in message
news:1163675950.788703.71100@.i42g2000cwa.googlegroups.com...
> Hi,
> I'm creating table, procedure from my c# codings in sql server.
> I'm having database owner rights.
> My problem is sometimes the table, procedure is created with
> username.tablename instead of dbo.tablename. so i'm unable to drop that
> table or procedure while my c# program is run by some other user.Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.how to drop the tables and procedures created by an
> another user.What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
> Thanks & Regards,
> Mani
>sql
Drop table , procedure Problems
I'm creating table, procedure from my c# codings in sql server.
I'm having database owner rights.
My problem is sometimes the table, procedure is created with
username.tablename instead of dbo.tablename. so i'm unable to drop that
table or procedure while my c# program is run by some other user.Kindly
suggest me a way to create table, procedure as dbo.tablename,
dbo.procedurename.how to drop the tables and procedures created by an
another user.What are the rights i required to create table,procedure
as dbo.tablename, dbo.procedurename in sql server 2000
Thanks & Regards,
ManiBOL says
The dbo is a user that has implied permissions to perform all activities in
the database. Any member of the sysadmin fixed server role who uses a
database is mapped to the special user inside each database called dbo.
Also, any object created by any member of the sysadmin fixed server role
belongs to dbo automatically.
For example, if user Andrew is a member of the sysadmin fixed server role
and creates a table T1, T1 belongs to dbo and is qualified as dbo.T1, not as
Andrew.T1. Conversely, if Andrew is not a member of the sysadmin fixed
server role but is a member only of the db_owner fixed database role and
creates a table T1, T1 belongs to Andrew and is qualified as Andrew.T1. The
table belongs to Andrew because he did not qualify the table as dbo.T1.
The dbo user cannot be deleted and is always present in every database.
Only objects created by members of the sysadmin fixed server role (or by the
dbo user) belong to dbo. Objects created by any other user who is not also a
member of the sysadmin fixed server role (including members of the db_owner
fixed database role):
a.. Belong to the user creating the object, not dbo.
b.. Are qualified with the name of the user who created the object
<plmanikandan@.gmail.com> wrote in message
news:1163675950.788703.71100@.i42g2000cwa.googlegroups.com...
> Hi,
> I'm creating table, procedure from my c# codings in sql server.
> I'm having database owner rights.
> My problem is sometimes the table, procedure is created with
> username.tablename instead of dbo.tablename. so i'm unable to drop that
> table or procedure while my c# program is run by some other user.Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.how to drop the tables and procedures created by an
> another user.What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
> Thanks & Regards,
> Mani
>|||> Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.
CREATE TABLE dbo.tblname(...)
CREATE PROC dbo.procname ... AS ...
> to drop the tables and procedures created by an
> another user.
DROP TABLE username.tblname
DROP PROC username.procname
> What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
db_ddladmin, db_owner or higher.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
<plmanikandan@.gmail.com> wrote in message
news:1163675950.788703.71100@.i42g2000cwa.googlegroups.com...
> Hi,
> I'm creating table, procedure from my c# codings in sql server.
> I'm having database owner rights.
> My problem is sometimes the table, procedure is created with
> username.tablename instead of dbo.tablename. so i'm unable to drop that
> table or procedure while my c# program is run by some other user.Kindly
> suggest me a way to create table, procedure as dbo.tablename,
> dbo.procedurename.how to drop the tables and procedures created by an
> another user.What are the rights i required to create table,procedure
> as dbo.tablename, dbo.procedurename in sql server 2000
> Thanks & Regards,
> Mani
>
Monday, March 19, 2012
drop or delete view
hello,
im creating a sp that creates a view from a query then bcp to csv file.
my problem is that when i start the sp, it complains the sp already exists....yes it does, however, i don't if im going about this the wrong way...but i tried the following to no avail
DROP IF EXISTS v_participantTrades
now, does that syntax not work for views?
IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'v_participantTrades'))
DROP VIEW v_participantTrades
|||
aah that explains the whole, create view needs to be the first statement!
thank you
|||exuse my incompetence however,
Invalid Object name 'sys.views'.
blaaa was my ineptitude - sysobjects for my version
cheers
Drop List problem
Hi,
When I'm creating a dropdown list prompt from a field which has large number of distinct values (OrgUnit codes etc.) I get an empty list.
Can anyone advice on this issue ?
Is your drop down list bound to a dataset.
Thanks,
vnswathi.
|||Hi,
We are using Cognos right now and moving to SSRS. In Cognos we don't have this problem and this problem occur in SSRS with all kind of field types if it has large amount of distinct values. Maybe it's a restriction in SSRS ? and if so, maybe you know the upper limit ?
Thanks,
Yuval
|||hi
i dont think there would be any problem with the fields size
u need to create a separate dataset for the drop down list prompt.
and then choose the from query parameter...
hope it solves your issue.
regards,
www.snktheone.com
Tuesday, February 14, 2012
Drill down slow
Hello everyone
For starters i'm using Microsoft analysis services, integration services and reporting services.
All goes well when creating some general overview reports.
Once i get to making drill down reports with only 2000 rows of data is already starts to work very slow (sometimes takes hours). It seems a data cube is only fast for calculations like SUM, PARALLELPERIOD, ... but if it comes to amount of data it is extreemly weak! 2000 rows is not even alot, i've seen reporting tools beeing able to handle a million rows with drill down function.
I'm thinking that this microsoft tool is just not able to handle reports bigger than 100 rows in it combined with drill down. Please proof me wrong because we already paid for the microsoft tools and it would be a shame if we were not able to use them because of bad functionality...
The machine we work on is quite strong (dual core 2.4 ghz, 4 gig ram, ...)
And yes i know you can make reports clickable so they take the value with them to a next report as a parameters but thats not what we are looking for, we need this drill down to work properly with larger amounts of data.
Hmm, I don't think it's the tool in this case - I have drill down reports with far more data than that and I've never run into 'hours' of execution time. Do you have more detail?
Drill down slow
Hello everyone
For starters i'm using Microsoft analysis services, integration services and reporting services.
All goes well when creating some general overview reports.
Once i get to making drill down reports with only 2000 rows of data is already starts to work very slow (sometimes takes hours). It seems a data cube is only fast for calculations like SUM, PARALLELPERIOD, ... but if it comes to amount of data it is extreemly weak! 2000 rows is not even alot, i've seen reporting tools beeing able to handle a million rows with drill down function.
I'm thinking that this microsoft tool is just not able to handle reports bigger than 100 rows in it combined with drill down. Please proof me wrong because we already paid for the microsoft tools and it would be a shame if we were not able to use them because of bad functionality...
The machine we work on is quite strong (dual core 2.4 ghz, 4 gig ram, ...)
And yes i know you can make reports clickable so they take the value with them to a next report as a parameters but thats not what we are looking for, we need this drill down to work properly with larger amounts of data.
Hmm, I don't think it's the tool in this case - I have drill down reports with far more data than that and I've never run into 'hours' of execution time. Do you have more detail?
Drill down matrix report slow performance
I have created OLAP cubes and we are creating reports on top of them. The reports take incredibly long to render (40 seconds to 5 minutes). The MDX for the reports runs in less than 15 seconds when executed as a query in Mgt. Studio. Browsing is also fast. The reports are drill down matrix-type reports and they do eventually display properly. Not that this should help with the mechanics of the issue but the report data source query will show how we drill across dimensions:
<code>
SELECT NON EMPTY { [Measures].[Number of Queries Run] } ON COLUMNS, NON EMPTY { ([ClientProjectDim].[Project ID].[Project ID].ALLMEMBERS * [UserDim].[UserName].[UserName].ALLMEMBERS * [QueryDim].[Status].[Status].ALLMEMBERS * [DateDim].[Date Hierarchy].[ClusteredHourOfDay].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Ad Hoc] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
</code>
The RS and security logs don't have anything meaningful. As the MDX works well when executed as a query but not in the reports I can't tell if it's a rendering issue somewhere. Has anyone experienced this issue and is there a resolution aside from restructuring the report?
I am experiencing similar issues but no answers, did you ever resolve youra?|||We did not resolve this, but rather restructured our reports. You might consider this. You can set up your reports with params for drill-through.|||Thanks, however I did parametize this report. I will try to restructure and do this long and laborious way. I noticed in the AS browser and MDX query designer they are using nice drill through tree for the parameters, but no drill through in the rendered form. Is that due to a property setting I am missing.