all groups > sql server new users > september 2006 > threads for september 15 - 21, 2006
Filter by week: 1 2 3 4 5
Copy Database
Posted by Tom Roth at 9/21/2006 2:42:02 PM
Running SQLServer2000 SP3. I have a database (DB1). I need to make a copy
of that database (DB1_Test). The new database (db1_Test) should have all of
the structures, permissions, etc. I don't want any of the data. Can someone
help me?
--
Tom... more >>
Transaction Log Errors
Posted by Tom Roth at 9/21/2006 8:39:01 AM
I'm running SQLServer 2000 Standard. I have a database that is set for
Recovery Mode = Simple. The dboption "trunc. log on ckpt." is set to TRUE.
I have also issued the truncate log command "BACKUP LOG DB_Name WITH
TRUNCATE_ONLY". I have penty of available disk space.
I still get the fo... more >>
how to query
Posted by Anders Eriksson at 9/21/2006 12:00:00 AM
Hello,
If I have this table:
IdNo int
Version int
data ...
IdNo and Version is the primary key.
How would I write an SQL query to get the latest version of a all IdNo?
// Anders
--
English is not my first, or second, language
so anything strange, or insulting, is due to
the tra... more >>
Advantages of SQL Server?
Posted by JustinP at 9/20/2006 10:25:33 PM
I've just split my db and am using Access as my front end. Are there
any advantages / additional functionalities of having SQL Server as my
back end that I can take advantage of?
... more >>
Problem with \ in ALTER SCHEMA dbo TRANSFER OWRD\julainih.AuthorList
Posted by frostbb at 9/20/2006 5:23:35 PM
SMS Query complains about the backslash in the following statement.
ALTER SCHEMA dbo TRANSFER OWRD\julainih.AuthorList
The old trick of doubling the backslash
ALTER SCHEMA dbo TRANSFER OWRD\\julainih.AuthorList
doesn't work either.
What do I need to change to let this statemen... more >>
Desupport dates for SQL Server 2000
Posted by parrymdp at 9/20/2006 12:34:02 PM
Hi, I've been trying to find desupport dates for SQL server 2000, but having
difficulty finding anything. Can someone provide this information to me.
Also, information about upgrading to 2005 would be helpful too.
Thanks, Mike... more >>
Conditional "Where" clause question
Posted by Alejandro at 9/20/2006 11:01:25 AM
I have the following "Where" clause
WHERE (dbo.UserLogin.Enable = 1) AND (dbo.Users.Archivedcont = 0)
and convert(char(8), loginstartime, 108) < convert(char(8), getdate(), 108)
and convert(char(8), getdate(), 108) < convert(char(8), loginendtime, 108)
But I only want the second line of the... more >>
Question on query
Posted by Alejandro at 9/20/2006 10:49:05 AM
I have the following query:
Select convert(char(8), loginstartime, 108) as startime, convert(char(8),
loginendtime, 108) as endtime from userlogin
It returns two values:
startime = 08:00:00
endtime = 18:30:00
Right now it is 10:40 am
If I add a where clause I get no results when in... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
scripting all stored procs in db?
Posted by Daves at 9/19/2006 9:12:07 PM
hi,
I need to synchronise local and remote database but only the stored
procedures...
Any ideas on how to collect all local ones and then create these on remote
db?
... more >>
Need help understanding the statement
Posted by _adrian at 9/19/2006 5:46:50 PM
So, I have a View built where the criteria on a date field is as follows:
> { fn NOW() }
..... but what its showing, is everthing from TOMORROW forward... I still
need for it to display TODAY's information as well. What do I set in
criteria to show this? > "yesterday" somehow???
... more >>
MSDE conversion to SQL Server 2000
Posted by Mark at 9/19/2006 3:56:00 PM
I thought that when you installed SQL Server 2000 the installation
automatically recognized an instance of MSDE and offered to upgrade you.
Well, after having installed SQL Server 2000 it looks like my database
still thinks that it's MSDE. At least I have both SQL Server 2000 and
MSDE runnin... more >>
SQL for time
Posted by Alejandro at 9/19/2006 3:52:40 PM
Hi,
I am using ASP/VB and MS SQL 2000 DB.
I have a date field that just holds a 'time', say 8:00 am
Then I have an ASP page where the user enters the time to compare, they will
search for results that have 'time' field between say 7 am 10, in this case
the record with 8:00 am should be di... more >>
Question on Limits
Posted by Thanas at 9/19/2006 8:42:50 AM
Is it fair to assume that the maxium number of Index on any given table
in SQL Server 2005 is 249 and 1 index can be clusted for a maxium of
250? Is this count also the maxium number of relationships that can
stem from that table. I am pretty sure it is, but I would like other
experts to comme... more >>
how can i insert an access recordset to an sqlserver table
Posted by Sam at 9/19/2006 12:00:00 AM
how can i insert an access recordset to an sqlserver table?
thanks
... more >>
Update only top 20 rows in a table
Posted by Daves at 9/19/2006 12:00:00 AM
how can I update only top 20 rows in a table? The table consists of
PostlistID int,
UserID int,
Send_Begin datetime,
Send_End datetime
and what I'm doing is to sequentally
-grab next 20 rows of recipients and set Send_Begin to GetDate()
-send these users email
-update Send_End to ... more >>
# of clients question
Posted by Marco at 9/18/2006 1:01:12 PM
Hi, we need to purchase SQL Server 2005 for a new hr system that is being
installed. We are thinking of getting the Microsoft SQL Server Standard
Edition 2005. It says that it comes with 1 server license and 5 user cal
licenses. Forgive me for this really dumb question but what does the 5 u... more >>
T-SQL subquery: Every order that is not the latest within one day
Posted by George Shawn at 9/18/2006 6:58:11 AM
Hi,
I am fairly new to T-SQL although I would not classify myself as a complete
beginner.
Last week I came across a strange business requirement for an application,
and I am still trying to figure out how to address it in T-SQL. I need to
pull a list of each customer's last order for a s... more >>
incompatible beta components
Posted by Daniel at 9/16/2006 7:53:12 PM
When I try to install SQL Server 2005 I get a message that says:
SQL Server 2005 Setup has detected incompatible components from beta
versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add and
Remove Programs to remove these components.
I haven't installed any beta softwar... more >>
exec sp to a variable
Posted by venkat at 9/15/2006 3:35:21 PM
Hi,
I have a stored proc that returns an entryid. When i tried to execute the
proc and assign to a variable in the sql analyzer, i am not getting the
correct output in the variable
For eg:
In the make_user_signup stored proc,
......
.......
Select @entry_id as EntryID
GO
When i d... more >>
SQL script to change multiple fields.
Posted by Sam Commar at 9/15/2006 12:00:00 AM
I have a database where I need to change all period to post information back
1 year.
There are approx 400 tables and most of them have a perpost field where the
Period to post information is stored. I need to take this information back
12 months for all perpost fields. eg Perpost in APDOC ... more >>
|