all groups > sql server programming > september 2006 > threads for sunday september 3
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
SQL 2005 Ordering in 2 directions
Posted by leon.vandenberg NO[at]SPAM hambisana.co.za at 9/3/2006 11:34:07 PM
Hi,
I'm having a problem with sorting data according to date. I've got a
flag in the database called published. If published is true then the
date should be sorted desc, else asc. I used the union all to try and
get a combined result set but get an error if I run the following query
SELECT ... more >>
How to list all indexs from a table?
Posted by Andreas Klemt at 9/3/2006 7:54:14 PM
Hello,
how can I list all indexs from a table?
sp_indexes myTable
does not work.
Error message: Could not find server 'myTable' in sysservers. Execute
sp_addlinkedserver to add the server to sysservers.
Thanks for any help in advance!
Regards
Andreas Klemt
... more >>
get data between specific rows
Posted by phil2phil at 9/3/2006 6:57:18 PM
Hi,
Is there anyway to get data from a specific row to row, suppose I have
this select query:
select *
from Items
order by ItemsPosition
which returns 100 items, now I only want items 1-10, and then later
11-20, the values will be inserted through a program into the query, is
there a way... more >>
import 1 mln records = problem
Posted by Dariusz Tomon at 9/3/2006 4:58:02 PM
Hi
I encountered a problem when I'm trying to import data from a flat table to
several tables of the same databases.
There are about 1 mln records inside the flat table called XX_ZRODLO. The
stored procedure for import seems to work and import data but after about
15000 it stops and it seems ... more >>
SQL server connection problem
Posted by djamilabouzid NO[at]SPAM gmail.com at 9/3/2006 3:47:19 PM
Hi!
I have some problems with ms sql server database connection. When I
wrote
the following function (in VB):
sub Remplir_Theme()
Dim connectionString As String =3D "Data Source=3D.\SQLExpress;
AttachDbFileName=3D|DataDirectory|\BasedeDonnees_babySQL.mdf ;Integrated
Security=3Dtrue; User In... more >>
Query question
Posted by Joseph at 9/3/2006 2:47:02 PM
Hi, I need some help with writing the SQL definition necessary to do the
following:
(Cut and paste into Notepad to see correct layout)
Temp table name: #Report1
PERMIT_ID PERMIT_NR PERMIT_TYPE_CD PERMIT_EVENT_DT DATE_TYPE_DS
DATE_TYPE_CD
---------------------------... more >>
Trigger When Row Changes
Posted by Stephen Lynch at 9/3/2006 2:24:58 PM
I am trying to set up a trigger where when the last or first name field
changes, it will posts the persons EmployeeUID to another table. I have it
working except that it sends all of the records to the destination table,
not just the single record that changed. Any ideas?
CREATE TRIGGER I... more >>
newbie needs help with trouble shooting
Posted by Raymond Du at 9/3/2006 2:06:57 PM
Guys,
I was asked to look into why the SQL server run very slowly sometimes. I was
told, say, from 9/1/06 6am -6:45 am the server ran particularly slow, is
there anyway I can know what jobs were running during that time from
Enterprise Manager or other tols? We don't have SQL profiler trac... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem updating large number of records
Posted by JMoritz at 9/3/2006 12:17:02 PM
I have a web application, .NET, that uploads an Excel file with thousands of
records, creates a DataReader, steps through the records and updates an SQL
table with each record. There has to be a better way, I just don't know what
it is. Can someone point me in the right direction?
John Mori... more >>
SQL Server 2000 - 64bit version - extended procedures
Posted by ps at 9/3/2006 1:35:46 AM
We have made a couple of extended procedure on SQL 2000 32 bit version. Now
the database is decided to reside on SQL 2000 64 bit version. Since extended
procedures will not work, can anyone give me any links or help how to
convert and build those procedures to work with 64 bit version?
Than... more >>
concatenate column from rows
Posted by Dahab at 9/3/2006 12:18:39 AM
Hi,
Can anyone help me with this query.
I have a table GassBottleSize with colums Gas, Bottlesize, id and values
ID Gas BottleSize
------------------------------------
1 Trimix1845 50
2 Trimix1845 100
3 Trimix1170 ... more >>
Doing JOIN with multiple table on multiple fields in each table
Posted by Yaniv Danan at 9/3/2006 12:00:00 AM
I have those Tables:
CREATE TABLE GameYellows(
id INT NOT NULL AUTO_INCREMENT,
AddedDate DATETIME NOT NULL,
Player_ID INT NOT NULL,
)
CREATE TABLE GameReds(
id INT NOT NULL AUTO_INCREMENT,
AddedDate DATETIME NOT NULL,
Player_ID INT NOT NULL,
)
CREATE TABLE GameSubs... more >>
Displaying numeric values
Posted by Robert Bravery at 9/3/2006 12:00:00 AM
Hi all,
what would I include in my select statement to have numeric type data to be
retrieved in a certain format.
So if I have data that looks like 123456789, I would like it to be retrieved
as $123,456,789.00
Thanks
Robert
... more >>
|