Viewing 15 posts - 346 through 360 (of 790 total)
Methinks no to the "application roles with multiple databases" question.
But you're right about it not being a good practice. But, PUBLIC role?! Be serious Mr development group...
September 1, 2003 at 7:12 pm
Try:
DECLARE @tb char (20)
SET @tb ='ilan'
EXECUTE ('
CREATE TABLE ' + @tb + '(
[id] [int] NOT NULL ,
[Fname] [nvarchar] (50) COLLATE Hebrew_CI_AS NULL ,
[mhlka] [int]...
August 31, 2003 at 3:21 pm
I suggest that, on a database by database basis, you create a role to do this. Give the role DDL privileges and backup privileges.
exec sp_addrole 'DDL_And_Backup_Role'
exec sp_addrolemember 'db_ddladmin' ,'DDL_And_Backup_Role'
GRANT...
August 31, 2003 at 3:12 pm
You could also consider SQL2000's sql_variant datatype. Eg.
create table MyTable
(PointValue sql_variant)
insert MyTable select 1
insert MyTable select 1.8123e3
insert MyTable select...
August 29, 2003 at 12:16 am
...but this opens up a wonderful way of restricting the use of a certain range of IDENTITY values. Take for instance:
create table MyTable
(id...
August 28, 2003 at 4:29 pm
I've seen this before, but MS don't seem to have acknowledged it as a bug. It will happen even if you do a straight FILEGROUP backup for model from...
August 28, 2003 at 4:09 pm
Dunno. All my SQL2000 is at SP3.
But, it happens on SQL7.0 too.
Cheers,
- Mark
August 28, 2003 at 4:02 pm
Yes. Happens for me too. Not just for foreign keys and for other constraints as well.
Cheers,
- Mark
August 28, 2003 at 3:41 pm
I beleive the solution may be the "Hide Server" option in SQL Server Network Utility (nb. NOT the client utility), TCP/IP properties.
Cheers,
- Mark
August 28, 2003 at 3:37 pm
Hi Carol,
What's your question?
Also, do you really want an email for every update on the table?
How about an end of day scheduled task instead?
BTW: I dont think "orderdate LIKE getdate()"...
August 27, 2003 at 6:06 am
From the looks of it, the answer is YES.
BUT, is this database one that was created by a 3rd party and used by its app? If so, then this creation...
August 26, 2003 at 5:41 am
No.... DDL not DLL.
DDL is Data Definition Language (the creation, dropping and altering of database objects, as you've shown in your last 2 examples) and can be assigned to a...
August 26, 2003 at 2:50 am
I think you may be stuck with using a stored procedures that run sp_executesql to evaluate the string.
An ideal solution would be a function that could use sp_executesql but unfortunately...
August 25, 2003 at 5:08 pm
Fingers crossed this posts ok....
Cheers,
- Mark
August 25, 2003 at 3:45 pm
Looks to me like a (3rd party) app is adding a bit of overhead to your SQL Server, perhaps necessarily, perhaps unnecessarily. Does the login/user under which it's running...
August 25, 2003 at 3:17 pm
Viewing 15 posts - 346 through 360 (of 790 total)