all groups > sql server (microsoft) > september 2004
Please Help with Transaction + Alter Procedure statement
Posted by robin.marshall NO[at]SPAM gmail.com at 9/30/2004 6:17:48 PM
Hi,
I am struggling with the following SQL. Can anyone help me please.
What is the problem?
Errors:
Server: Msg 156, Level 15, State 1, Line 6
Incorrect syntax near the keyword 'PROCEDURE'.
Server: Msg 137, Level 15, State 1, Line 14
Must declare the variable '@mySomething'.
BEGI... more >>
Database design correct?
Posted by Shabam at 9/26/2004 5:48:14 AM
I have an application that lets users upload pictures. These pictures are
stored in different folders depending on the user ID (of the user that it
belongs to). The path can be figured out dynamically by knowing the user
ID. However, the programmer that's coding my application has decided to
... more >>
This is a Nice One (Bug)
Posted by Tom Jastrzebski at 9/24/2004 11:20:02 PM
Hello everybody,
Try this:
declare @table table(col int)
select a.col
from @table a
join (
select c.col
from @table c
join (
select e.col
from @table e
where e.col = (
select max(g.col)
from @t... more >>
A CSV or a LIST aggregate function
Posted by mail NO[at]SPAM brianrice.com at 9/24/2004 10:55:56 PM
Has there ever been any discussion of having an aggregate function
that would return a comma seperated list of values... so for example
if you had the following rows in a table called People:
Id Name Age
1 Brian 18
2 Brian 20
3 Bob 25
4 Bill 10
5 Bob 30
And did a select that ... more >>
Saving text to MS-SQL...
Posted by The Eeediot at 9/24/2004 10:47:20 AM
If you use the command UPDATE <tablename> SET <fieldname> = ' ... ' to
update a CHAR or TEXT field there are some characters that can cause
problems such as a single quote. Are there any other type of charaters like
that?
TIA
... more >>
Date Question...
Posted by frank20 at 9/23/2004 12:45:50 PM
Have a SQL Server database that I am populating (for a client) using file
data from legacy COBOL / Unix system. They are using Microstrategy against
the database for BI purposes...and it is working. When I load rows from
legacy files, I am including a data/time stamp.
Legacy system follows bas... more >>
Load balancing
Posted by Shabam at 9/21/2004 8:31:57 PM
Ok, suppose I have a dotnet application that uses MS SQL server. The SQL
server is maxed out. Suppose the code is already optimized and suppose I've
already maxed out the ram and processing power. What ways are there to load
balance it so that I can scale the application further up?
... more >>
Explain TSQL running
Posted by Just D. at 9/21/2004 6:48:58 PM
All,
I found this script in one FIDONET conference and decided to test my servers
available around. The result is more than strange.
-- TSQL
DECLARE @i INT,@j INT
SET @j=0
SET @i=0
WHILE @i <= 3000000
BEGIN
IF @i > 100
SET @j = @j+100
IF @i < 300
SET @j = @j-... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Enterprise manager
Posted by Usenet text at 9/20/2004 1:53:02 PM
We have installed SQL 64-bit on an Itanium server running windows 2003.
We can't use enterprise manager to connect from any workstations
We get this error: SQLSERVER does not exist or access denied.
Even the SA account Fails.
Help..
Thanks
Masg
... more >>
bcp question
Posted by WKC at 9/17/2004 7:13:27 PM
Can someone tell me how to export data to the flat file with bcp that are
comma delimited instead of the tab delimited by default. I'm sure it's just
some configuration or something. I just need some quick answer. Thanks in
advance.
Wei
... more >>
Question for David Browne
Posted by ambradnum NO[at]SPAM hotmail.com at 9/16/2004 3:16:08 PM
Hi David
You answered a recent query about entering NULLs
in Enterprise Manager.
Where did you learn this?
Do you know of any other useful shortcuts?
TIA
Alan... more >>
image field
Posted by Marcel at 9/16/2004 10:14:29 AM
Hello,
In my MS SQL SERVER database i have an column with datatype image. Some
records do have data in this column, some others don't. When i look at this
table in Enterprise Manager then i see in every field '<image>' so no way to
see directly wheter a filed has data or not. Is there a way to... more >>
FillFactor
Posted by dsj_tn NO[at]SPAM yahoo.com at 9/16/2004 7:07:02 AM
We have a client that for their database every index is set to a
FillFactor of 90. The tables vary heavily opn the amounts of reads
compared to inserts/updates. After looking this topic up, I have found
this rule:
Low Update Tables (100-1 read to write ratio): 100% fillfactor
High Update T... more >>
TDS7/8 Login Packets
Posted by Jeigh at 9/15/2004 2:25:22 PM
Is there anything available that will decode the password found in TDS7/8
login packets? (these are the packets that are sent to SQL Server to
authenticate a user in mixed mode)
I'm dealing with this situation... Often times my clients will hammer my
sql server with login attempts, but t... more >>
Basic MSDE Setup Question on Windows Server 2003
Posted by Jolly Student at 9/14/2004 12:50:22 AM
Dear Colleagues:
This is such an SQL newbie question its not even funny. To begin with,
please forgive my informality as well as my lack of any specific error
messages, etc.. . I think the questions are academic (the specific error
messages and notes are strewn about my desk at work).
Ok... more >>
#deleted in query from linked SQL Table
Posted by RTL at 9/13/2004 1:28:24 PM
Hello all,
Hello,
I posted this in the MS Access forum, but did not get a response. I'm hoping
that someone here will have some input
I have a problem which may just be a config problem. I have linked tables to
a SQL DB view. For all users, it just has INSERT permissions to this
table--e... more >>
Moving Table to New Filegroup w/ No Downtime, No Table Locking
Posted by colbycrane NO[at]SPAM gmail.com at 9/11/2004 4:25:32 PM
I have a 24/7 Sql Server Database (4way processors 4GB ram, DL580's).
I need to move a very large table (1 billion records, 20GB in size)
without any downtime and without locking the table. I also need to be
considerate of CPU utilization during this process. I have a
clustered index and a no... more >>
Problems With Views
Posted by Brij Singh at 9/10/2004 11:42:12 AM
I have a situation with a view. This view uses 2 or 3 or 4 tables to
retrieve data, doesn't matter I have several. Someone came to me and said
"During design, I forgot a field..." in one of the tables that make up this
view. So the field was inserted into one of the tables. Now when I execute
th... more >>
how to: update top 1
Posted by R. van Laake at 9/9/2004 1:04:50 PM
Hi there,
On SQLServer 2000 , I want to do this: select randomly any unhandled
customer from a table, and before doing anything else mark that customer as
"being handled" (so my collegue won't begin handling the same customer).
Right now I am using:
UPDATE tbl_customers SET col_handledby=... more >>
help setting up a database
Posted by mcourter NO[at]SPAM mindspring.com at 9/9/2004 9:59:23 AM
i need some advice on how to set up some tables within a database. i
am working on a project that inventories blood samples. the blood is
recieved in packets. it is divided into tubes, plasma, cells and DNA
are then extracted into tubes. the specimens are then inventoried
into freezer boxes.
... more >>
Converting Stored Process to other DBMS?
Posted by Kayda at 9/8/2004 6:01:39 PM
Hi:
Simple question--is there a tool that convert SQL script written in SQL
Server to the equivalent in another DBMS such as Oracle or DB2?
Thanks!!
blair
... more >>
Database record disappear
Posted by salamol at 9/8/2004 12:20:24 PM
I has a strange question.
My company is using a old system with Win NT 4.0 Server + MS SQL 7.0.
The system is busy and handle a lot of SELECTs and INSERTs all the time.
Sometimes, some transactions are blocked by some other transactions.
For those INSERT transactions, we usually call a stored ... more >>
Help with error code
Posted by Chris Pickup at 9/6/2004 4:43:27 PM
Can anyone help with the following error. I have a job that runs daily
on a server that gets data from a database on a different server. Most
nights the jobs runs fine, but every now and again I get an Error 7399,
followed by Error 7312. This last happened in the early hours of this
morning, ... more >>
Migration from Oracle 7.34 to SQL 2000
Posted by Jack Snow at 9/4/2004 3:01:49 AM
I'm attempting to move a database which currently exists on an old Oracle
7.34 instance and tried to use Data Import via DTS to SQL 2000.
The Oracle database consists of views, indexes,packages,triggers as well as
tables structures. I tried DTS using both the ODBC and OLE for Oracle and
only t... more >>
Migration from Oracle 7.34 to SQL 2000
Posted by Jack Snow at 9/4/2004 3:01:45 AM
I'm attempting to move a database which currently exists on an old Oracle
7.34 instance and tried to use Data Import via DTS to SQL 2000.
The Oracle database consists of views, indexes,packages,triggers as well as
tables structures. I tried DTS using both the ODBC and OLE for Oracle and
only t... more >>
data cleansing and translation tools for relational databases
Posted by karenmiddleol NO[at]SPAM yahoo.com at 9/3/2004 10:25:31 PM
Hello All
We have a data migration project. This is basically what we plan to
achieve we have a legacy system which as some data with German long
texts like material texts,etc
We want to take data coming in flat files which as this german texts
and convert this to English text the texts are... more >>
User login and account out of sync
Posted by williaj NO[at]SPAM rrb.gov at 9/1/2004 3:13:00 PM
Hello all.
I restored a SQL Server 7.0 backup to SQL Server 2000. I get the
following message when I run my asp page:
Microsoft OLE DB Provider for SQL Server (0x80040E4D)
Login failed for user 'XXX'.
I can see the XXX user listed under users for the database, but not
listed under login... more >>
Performance problem SQL Server 2000
Posted by Mikael.Fahlander NO[at]SPAM maquet.com at 9/1/2004 3:24:06 AM
Did someone come up with a solution for the performance problem you
got in some cases when upgrading from version 7 to 2000? The query is
40 times slower in SQL 2000 and with a different query plan. The
database is the same ( transfered ), all indexes in place and
statistics updated. I have seen... more >>
|