all groups > sqlserver server > august 2006 > threads for tuesday august 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Point in time restore - cannot change date
Posted by joe at 8/8/2006 9:43:11 PM
I am trying to roll back a SQL Server 2000 database to a previous point
in time, but I am not allowed to select the date I want in the 'point
in time' dialog - it always reverts back to the date of the transaction
log backup.
So far, I have done the following, in the following order:
1.... more >>
Denormalizing a database table
Posted by alkkmrz2004 NO[at]SPAM yahoo.com at 8/8/2006 6:43:44 PM
Folks,
Any help with creating a SP that denormalizes the below table to the
desired output will be appreciated.
Current Input Table Structure:
SNum KeyName KeyVal value
1 SCM1 name DFW
1 SCM1 OVal 200
1 SCM1 OSum 500
2 SCM2 name ORL
2 SCM... more >>
monitoring sql server box
Posted by John Smith at 8/8/2006 5:07:58 PM
I would like to find out if there are any free tools that could be used to
monitor a sql instance and list the
a. most frequently run stored procedures and how long each takes
b. most frequently run views and how long each takes
netiq used to have app manager - is that still available ?
... more >>
SQL Licensing Mode
Posted by Gates at 8/8/2006 4:37:43 PM
Doesn anyone know how to tell what licensing mode a SQL Server is running.
Per Processor or Per Seat?
... more >>
3gig or 4?
Posted by davconts NO[at]SPAM gmail.com at 8/8/2006 4:21:19 PM
Hey all,
Ok I have a client that currently have 3gig of memory in their SQL
Server (SQL2005).
They are using the /3gb switch in their boot.ini so in theory SQL
server should use greater than 2 gig.
Ok from my understanding, if they put in an extra 1 gig of ram to make
the server now have... more >>
return a double or float from integer calculation?
Posted by Dabbler at 8/8/2006 3:31:01 PM
I need the following select to return values as doubles or floats, not whole
numbers . Right now I get back integers (not rounded to boot):
SELECT AVG( RideCountAM) as AMAvg, AVG(RideCountPM) as PMAvg etc.
This is a dynamic select statement being used in an SqlDataSource. Thanks
for any su... more >>
SQLSTATE 42000 Error 8198
Posted by David Bird at 8/8/2006 3:06:43 PM
A week or so ago, my Global Catalog Server failed. I had additional DC's
with FSMO's transferred, except for the GC. After clearing the metadata and
people could function again, I started having trouble with SQL 2000 and
authentication for scheduled jobs. The errors generated were authentic... more >>
trigger trouble
Posted by Ben Watts at 8/8/2006 2:52:24 PM
I have a trigger I Am trying to create that will delete the record from my
rental table when the status in the status table = Under Warranty. Here is
what I have so far. By the way, both table have the jobnumber in common
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER TRIGGER ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQL Agent job
Posted by lf at 8/8/2006 2:19:02 PM
Hi,
I have a job that I want to schedule to run every 10 minutes in Sql Agent
for Sql Server 2000. It is possible that my job could try to run while a
previous run is still working. (At least I think it is). Is there a way
that I can query to see if my job is already running?
Thanks ... more >>
Database Restore error
Posted by Hitesh at 8/8/2006 2:08:09 PM
Hi,
When I am using following script, I am getting an error message
ALTER DATABASE mydb SET SINGLE_USER WITH ROLLBACK IMMEDIATE
RESTORE DATABASE mydb FROM DISK
='\\myServer\c$\backup\mydb_oltp\mydb_oltp_db_200608062107.BAK'
Server: Msg 3101, Level 16, State 1, Line 1
Exclusive access... more >>
delete trigger
Posted by Ben Watts at 8/8/2006 1:24:08 PM
I am trying to create a trigger where if the check box iin infopath is
checked then it deletes the whole record from the database. I am not sure
where to even start on this trigger. Please Help.
... more >>
Any plans by MS to discontinue support for SQL Server 2000?
Posted by Josh at 8/8/2006 12:34:01 PM
We're contemplating an upgrade to SQL Server 2005 but I'd like to know if
ongoing support for SQL Server 2000 is a potential issue.
Thanks!... more >>
Aggregate function MAX ignores NULLs
Posted by KDee at 8/8/2006 11:55:07 AM
I need to run a query that will pull the most recent revision, and it
must be based on the RevisionDate (if you need to know why it is
because the revision column can contain letters, numbers, hyphens, or
underscores - numbers, in this case have the highest value, but SQL
interprets letters as h... more >>
HOWTO: SQL SERVER Express - Limit memory used
Posted by Sam Malone at 8/8/2006 11:34:03 AM
Is there anywhere I can find out what SQL Server options are available and
how to set them?
Specifically (at the moment) I'd like to know if I can limit the amount of
memory SQL Server Express is allowed to use and, if so, how.
... more >>
Can I grant a group access to my db
Posted by Dave at 8/8/2006 11:33:34 AM
I would like to be able to do something like this:
use mydb
exec sp_grantdbaccess 'localhost\Users'
go
When I do, I get this error msg:
Windows NT user or group 'localhost\Users' not found. Check the name
again.
The error message implies that I should be able to add a group.
A co-wo... more >>
Is SP1 loaded?
Posted by Diane at 8/8/2006 10:36:06 AM
How can I check (where can I check) to see if SP1 was loaded onto a server?
I checked Help, About. I check Control Panel. Any other suggestions?... more >>
Drop Remote Servers
Posted by Hitesh at 8/8/2006 10:07:34 AM
Hi,
I have a database server and my predecessor created replication and
then dropped it. Now I am stuck with some servers under Remote Servers.
When I try to delete them I get an error message: 20583 cannot drop
server because it is used as a subscriber. Any hints on how I can drop
these Remo... more >>
SQL Authentication Not Working, But Windows Authentication is???
Posted by Nigel at 8/8/2006 9:59:42 AM
Hi All,
I am having a problem with SqlServer 2000 sp3 in regards to getting it
to accept SQL Authentication for users I have created.
For example, on my sql server box (win2K3) I create a user
"sps_serviceLOCAL", and add it to the Administrators group. I then add
that account to the SQL Se... more >>
Drop Remote Servers
Posted by Hitesh at 8/8/2006 9:53:24 AM
Hi,
I have a database server and my predecessor created replication and
then dropped it. Now I am stuck with some servers under Remote Servers.
When I try to delete them I get an error message: 20583 cannot drop
server because it is used as a subscriber. Any hints on how I can drop
these Remo... more >>
Hi
Posted by MJ at 8/8/2006 9:38:01 AM
I'm cuestion
how to update at all
this is my sentence
update Table1
set Total = sum(b.monto)
from Table1 a , Details b
Where a.numerCode = b.numerCode
the answer is : an aggregate may not apper in the set list of an Update
statement.
Thanks for you help.
Chrees... more >>
Error (re)installing Sql Server 2000
Posted by Nicola at 8/8/2006 7:47:02 AM
Hi,
while reinstalling Sql server 2000 (after complete uninstall process),
system says:
"previous installation leaves suspended operations on files into computer.
It needs to be restarted before executing installation program."
Problem still remains , also after resterting pc many times... more >>
Covering indexes in SQL Server 2005
Posted by smithabreddy NO[at]SPAM gmail.com at 8/8/2006 7:35:37 AM
Hi,
To look up information about indexes for a given table in SQL Server
2005, I can use:
sp_helpindex TableName
or
select * from sys.indexes where object_id = object_id('TableName')
But this just gives me information about the column or columns on which
the index has been defined. How d... more >>
How to restore a database in 2005
Posted by Diane at 8/8/2006 5:25:56 AM
I received a copy of a 2005 database I need to restore so I can evaluate its
structure. I have just installed 2005 - how do I restore the database (it is
a .bak file)?
Any help would be greatly appreciated (I am just learning 2005 - but
understand the basics of 2000).
Thank you.... more >>
Missing Subject
Posted by Adri at 8/8/2006 5:15:09 AM
Hi,
last month I installed SQL Server 2000 on a new server (Install SQL2000 and
then upgraded to SP4) because that server is going to replace the main
production server. I've restored the database dumps from the old server to
the new one and did also copy the SQL Agent jobs. Also configured... more >>
Database Size problems
Posted by Simon at 8/8/2006 3:51:02 AM
I have a database that has grown much larger than I expect. There is a
specific table that seems to be unusally large. If I copy the data from that
table out into a temp table then copy it back in, it frees up over 90% of the
space that it was taking up.
I cannot alter the database structure ... more >>
bcp and exporting
Posted by Raj at 8/8/2006 2:27:05 AM
Hello,
I'm exporting data from text file which contains 15 lakh records.
Each field is delimited by "," and record is delimited by "$".
Only 163200 records were inserted.
I'm using this option
bcp tablename in
"datafile.txt" -c -t"," -r"$" -S"MyServer" -U"sa" -P"pwd123"
Any worka... more >>
Model backup failed
Posted by ina at 8/8/2006 12:41:07 AM
Good morning,
I am new to sql server and I have an issue with my backups.
So I set up these jobs:
Backup for System database:
Model, Master, MSDB DATABASE separately (every day at 22h)
Model, Master, MSDB log separately (every hour, between 5h-21h)
Backup for User Database
Databa... more >>
Can we disable SA Account in SQL Server.
Posted by csajid NO[at]SPAM gmail.com at 8/8/2006 12:27:30 AM
Hi,
I am running SQL Server 2000 SP3. For Security purpose i want to
disable SA Account.
But i am not sure that, we can disable SA account.
Please give me reply.
Thanks & Regards,
Sajid C.
... more >>
Moving from SQL 2000 to SQL 2005
Posted by xfile at 8/8/2006 12:00:00 AM
Hi,
Appreciate if anyone could advise:
Main task: Back up existing SQL 2000 database and replicate a new SQL 2005
database to a remote site.
Background:
(1) A major application upgrade has been done using a new SQL 2005 database
(at a remote site). We are ready to put the application ... more >>
Error connecting to sql db on another computer
Posted by reidarT at 8/8/2006 12:00:00 AM
When I try to connect to an sql express db on another machine, I get this
message
TITLE: Connect to Server
------------------------------
Cannot connect to REIDARNOTEBOOK\SQLEXPRESS.
------------------------------
ADDITIONAL INFORMATION:
An error has occurred while establishing a con... more >>
|