all groups > sql server (microsoft) > april 2007
Filter by week: 1 2 3 4 5
SQL Data Types
Posted by Richnep at 4/28/2007 11:28:17 AM
Hi All,
THis should be a simple one. I have a table where the primary key is a
vchar data type. The actual data is a 4 digit number between 1-9000.
Most are whole numbers (i.e. 2000) with no decimal places. There are a
few that have 1 decimal digit on them(i.e. 2000.1). What I would like
to d... more >>
SQL Server 2005 cursor incompatibility issue, will not update through adodb recordset
Posted by dan.kresha NO[at]SPAM gmail.com at 4/27/2007 8:59:39 AM
This application worked like a charm with server 2000, but will not
work with 2005. The application is trying to update through a cursor
and an SQL Server ODBC and receives this error each time it tries to
update "The cursor does not include the table being modified or the
table is not updatabl... more >>
extracting date from datetime execution performance time problem
Posted by Manikandan at 4/26/2007 12:06:06 PM
Hi,
I need to take date value from datetime column.
I'm using convert function as below
convert(varchar,date,103)
I have a feeling that convert function taking much time to execute.
How about using cast function.
I'm querying a large number of records in table
I need a function for displaying... more >>
Parse delimited column
Posted by ryan.carver NO[at]SPAM gmail.com at 4/25/2007 3:17:45 PM
I would like to parse a delimited column in a table that maintains 12
placeholders into a new table with 12 columns
Each row / string looks something like this: 0;0;0;0;0;0;0;0;0;0;0;0
Does a simple solution exist?
... more >>
String function LEFT in where clause possible?
Posted by mail-rk NO[at]SPAM gmx.de at 4/25/2007 6:21:37 AM
Hi, I am brand new to MS SQL and an have to create a select statement
for two tables. In each table I have a Field 'pc-name'. In table1 'pc-
name' is 'PC001XP1' or 'PC20009'. In table2 the SAME machine is called
'PC001XP1_ROOM12' or 'PC20009_ROOM144'. I have to match these tables.
I tried a sele... more >>
Comparing two dates with null values
Posted by Manikandan at 4/25/2007 5:37:42 AM
Hi,
I have a doubt of querying a date column
Table Name:Detail
Name(varchar) sdate(datetime,null) ddate(datetime,null)
Value(int)
ss 2007-04-03 10:41:12.410 NULL
10
rr 2007-04-03 10:41:12.410 2004-04-03 10:41:12.410 10
tt 2007-04-03 10:41:12.410 20... more >>
Recovering deleted data
Posted by Kayda at 4/25/2007 4:13:01 AM
Hi:
II have a database that has not been backed up, and a delete command
deleted certain rows from one table.. How can I recover the table to
its original state using the transaction log, and without using a
third party tool?
Thanks,
Kayda
... more >>
Discrepancy in Row Count between Table Properties and Query Analyzer
Posted by zacks NO[at]SPAM construction-imaging.com at 4/24/2007 11:52:13 AM
I have a table that shows a row count of 2092 in the Enterprise
Manager Table properties window. But if I run a select count(*) from
the table, it shows 2110 rows. Any idea why the discrepancy?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Help With Update Query
Posted by KenCraft at 4/23/2007 10:56:21 AM
Hello,
I need a little help with a query I am trying to build. Heres what I
want it to do:
I have 2 tables, ActivityPartyBase and ActivityPointerBase (Microsoft
CRM database)
I want to update a cell (ParticipationTypeMask) in ActivityPartyBase
ONLY If the following 3 creds are matched:
... more >>
Stored Proces
Posted by Mike J at 4/20/2007 3:38:39 PM
i need to pull data (Rows) from one server1 on machine1
to Server2 on machine2 (where stored proc is running)
Process the record set then update server1 of results
any examples here how to accomplish this task
> thanks
> MJ
>
... more >>
Are there any PhpMyAdmin clone for ASP.net and SQL Server?
Posted by Eric Layman at 4/20/2007 12:00:00 AM
Hi,
I'm not sure if this is the right place.
I understand there is a tool called MSDE web admin which is supposely a =
web based version of our fav MS SQL GUI tools. But that requires =
installation.
The reason im asking this is because currently we are doing a project in =
which client'... more >>
Install SQL Server 2000 SP4 via remote desktop on the cluster.
Posted by romicva at 4/17/2007 5:50:06 AM
Hello.
Has anyone attempted and successfully installed SQL Server 2000 SP4
via remote desktop on the cluster.
The reason I am asking is that SP4 readme file has this:
"...
4.3 Systems Management Server Distributed Installation
You cannot install Database Components SP4 from a remot... more >>
Licensing for SQL 2000 and SQL 2005 for public website that uses database?
Posted by Leythos at 4/13/2007 10:00:11 PM
I'm under the impression that SQL 2000 requires a CPU License for any
internet website that allows access to a database - even if you don't use
Windows authentication.
Is this true of SQL 2005 Workgroup (or any other version) also?
--
Leythos
spam999free@rrohio.com (remove 999 for proper ... more >>
Share Database Server
Posted by walterannz NO[at]SPAM gmail.com at 4/13/2007 11:36:49 AM
Can MOM, SMS, Sharepoint Portal Server 3.0 share a database
server..... Does anyone has MOM databases on a shared database
server? Any issues? We are planning to put MOM, SMS and Sharepoint
databases on one database server.
Any advice will be appreciated...
... more >>
BP Margolin ?
Posted by Aamir Ghanchi at 4/12/2007 9:45:42 AM
Does any one know if he is ok. his last post was way back in Nov 2003.
I hope he is alright. It will be sad to miss such a resourceful
contributor to this newsgroup. I personally have benfiited many times
from his posts.
AG.
... more >>
Restore a backup to a different db name and path
Posted by Monik0277 at 4/11/2007 10:46:49 AM
Hello All,
I have the following situation:
Database1 on my sql server with the following path: C:\DBs
\Database1.mdf, etc... I made a backup of this database. Now I need
to restore this backup on a different pc into the following: Database2
with the following path C:\Customers\DBS\Databas... more >>
SQL 2000 version of sys.dm_db_index_physical_stats?
Posted by billnoble204 NO[at]SPAM hotmail.com at 4/10/2007 4:05:35 AM
Hello,
I have the following SQL script:
INSERT @work_to_do
SELECT
f.object_id
, index_id
, avg_page_space_used_in_percent
, avg_fragmentation_in_percent
, record_count
FROM
sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL , NULL, NULL,
'SAMPLED') AS f;
WHE... more >>
Default database status for ODBC connections problem, SQL2005
Posted by Bob at 4/8/2007 5:36:46 PM
I am using SQL Server 2005 and using a database program that was installed
on the C:\ drive of the server. The 12gb partition has 1.8gb left and I
need to move it to the 550gb D:\ drive. Simple, yes and no. I have an
external MS Access 2003 report program that connects to the database via a... more >>
Full Recovery Trans Log not shrinking
Posted by Flomo Togba Kwele at 4/8/2007 2:00:42 PM
I am using the Full Recovery Model with a database approximately 3G. I have
added about 300k rows, increasing the log file from 25,000 to over 1G.
Using the Management Studio, I backed up the Transaction Log, setting the
"Truncate the Transaction Log".
I expected that this would reduce the s... more >>
Convert SQL Account to Windows Accounts + EXEC on ALL SPs
Posted by DaBrain at 4/8/2007 1:12:17 PM
I am no DBA, but this is my task.
I have an SQL Server 2000 Database that has an "SQL Account" that has
execute permission on all Stored procedures. it is what was used by
the company. This one account is used by "all workstations".
I want to fix this and use Windows Accounts, and get rid ... more >>
Update Statement
Posted by louciv at 4/6/2007 11:36:01 AM
How do I write an Update statement to update a field called LastName with
this value O'Conner.
I've tried the norm but I keep getting error messages.
UPDATE Customers SET LastName = 'O'Conner'
How do I fix?
Thanks,
Lou
... more >>
store procs
Posted by DaveP at 4/6/2007 8:30:28 AM
is there a way to export all my stored procs
to another database on another server
thanks
dave
... more >>
How to do a Recursive Join with SQL
Posted by Herby at 4/5/2007 9:17:12 AM
I have two tables that can be joined on a foreign key.
Table1 contains:
Key,Name
1, A
2, B
3, C
Table 2 contains:
Fkey, Name2
1, B
1, D
2, C
2, E
So i want to say something like "Show me all the links for A"
giving:
A,B
A,D
A,C
A,E
The reason we get A... more >>
problem with linked server (access 2007) to sql server 2005 express
Posted by Aivars at 4/5/2007 5:53:02 AM
Hello,
I receive the following error when querying a linked access 2007
database (as linked server) to sql server 2005 express:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server
"underbase" reported an error. Access denied.
Msg 7301, Level 1... more >>
constraint a nvarchar column to printable ascii characters
Posted by JSimmons at 4/4/2007 1:55:35 PM
How can I write a constraint to allow only printable ascii characters
in a nvarchar field?
... more >>
Large number of exec sp_reset_connection calls to SQL Server 2005
Posted by time2fly NO[at]SPAM gmail.com at 4/4/2007 10:20:51 AM
In looking at a sql trace in profiler I see a large number (over 1
million) sp_reset_connection calls from our ASP.NET application to our
SQL Server 2005 database.
I know that sp_reset_connection is used with connection pooling
between calls. My concern is the ratio of procedure calls to
con... more >>
|