all groups > sql server programming > february 2005 > threads for saturday february 26
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
Query Data using Date
Posted by wira659 at 2/26/2005 9:57:02 PM
I using Windows XP SP2. Install SQL Server 2000 Developer Edition.
I want to query a table which contains a column of data type datetime using
ASP form, where the input of type text. Before querying I cahnge input text
into date format using CDate() function.
When I run the query I got th... more >>
Can't login into SQL Server Database
Posted by Al Wilkerson at 2/26/2005 9:48:11 PM
Hey
I get the following error when trying to connect to my named instance Sql
Server running locally on my laptop. Does anyone know how to resolve this
I get the following error : Login failed for user:acw
Here is my code:
SqlConnection sConn = new SqlConnection(server=ACLAPTOP\ACSQLSE... more >>
Distinct and Group By
Posted by Jim Little at 2/26/2005 7:59:39 PM
*** This is a follow-up to my recent post "Distinct For Only Some Columns In
A Row".
Recently, I posted a question. That question was answered, but a new
question surfaced immediately afterwards. What follows is a combination of
my former post and the new question...
I'm trying to work w... more >>
help with join please
Posted by Williams at 2/26/2005 7:09:56 PM
(first off sorry if in wrong forum -- if so please let me know which is
best)
Its been a long time since I have done this and need some help! Basically I
have two tables that I want to join using a query that works in both SQL 7
and Jet. Here is the select statement I am using:
PARAMET... more >>
union replacing values
Posted by Henri at 2/26/2005 7:05:36 PM
Hello,
I want to retrieve the preferences of a user.
There are two table.
The first one called tab_org_conf store key-value pairs indicating the
default preferences of the organisation the user belongs to.
The second one called tab_user_conf store key-value pairs indicating the
preferences s... more >>
SQL Query Question
Posted by PD at 2/26/2005 5:13:34 PM
I have two table one with contact information and one with account
information. This is a one to many relationship since one contact can have
many accounts.
I'd like to merge all of this informtion into one table with the account
numbers for a contact all being placed in a memo field.
I... more >>
Master-Detail (2 details)
Posted by Bruno N at 2/26/2005 4:12:04 PM
Hi!
I have the following master-destails table in my database:
www.virtuasoft.com.br/help.JPG
Please help in the following sqls:
1. How can i create a SQL that returns all the field from both tables? (i
have tried INNER JOIN, but, since Person and Company have different fields,
it does... more >>
How to run trigger against already-filled-table?
Posted by Willianto at 2/26/2005 3:53:47 PM
Hi all,
I am creating a trigger for table A. This trigger would insert some values
to table B. Problem is, the apss that uses this database is already running
for months by now and table A has filled with transaction values.
Question:
Is there any way that I could run the trigger (thus auto... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
a good reference for learning differnet Joins in SqlServer 200
Posted by RayAll at 2/26/2005 3:47:19 PM
Is there a good document for learning different joins in Sqlserver? .I have
seen some of them on the net but not very helpful .
Thanks
... more >>
dynamic pivot?
Posted by Daniel Wilson at 2/26/2005 3:39:24 PM
I need to write a report that displays the time each operation was started
across the page like this:
Ord_Num OC020 OC030
------------ ------------------------------------------------------ --------
-----------------------------------------... more >>
PK Index name
Posted by simon at 2/26/2005 3:37:28 PM
I have table tipDok with primary key, which is varchar data type.
The name of the index(primary key) is generated automatically and is:
PK__TipDOK__1EC48A19
I select: ALL tasks- Export data in enterprice manager and copy objects
option and then select this table to be copied to some other... more >>
Hierarchical Top Level BOM Query
Posted by CapeCAD at 2/26/2005 3:09:04 PM
The following query gives me some top level and some subassembly levels
returned because they are at the same level in the hierarchy. How can I get
it to keep selecting the subassembly levels until all returns are top level?
SELECT DISTINCT TOP 100 PERCENT Parent_Pfl.PflNumber AS ParentPfl,
... more >>
Update 1 row at a time?
Posted by Rudy at 2/26/2005 2:01:02 PM
Hello all!
I'm writing a SP to use in my VB.net application. When I run the following
query...
SELECT MAX(TableID) AS returnvalue
FROM TblID
WHERE (Inuse = 0) AND (TableID <= 5)
UPDATE TblID
SET InUse =... more >>
Into cursor problem
Posted by Agnes at 2/26/2005 12:33:32 PM
My code in SP
DECLARE @sql nvarchar(4000)
SELECT @sql = 'SELECT accttype,cocode,coname INTO #tempTable from #myTable '
print @sql
EXEC @sql
I got the error Invalid object name '#temptable' , Does anyone know the
reason ? thanks a lot
... more >>
Max + 1 records in a table....
Posted by mahesh at 2/26/2005 11:36:54 AM
New bie, I'm using max+1 in select query to get the maximum no of rowz in a
table. Thru this i'm generating client ID. For this i used to insert atleast
one row in a table while quering . Now i have to generate 1 as for first
inserting row. then subsequent rows as max+1.
--
Mahe~
... more >>
Valid MS Access SQL Syntax (Double JOINtedness)
Posted by Don at 2/26/2005 11:17:21 AM
Is the following SQL valid in Access?
SELECT A.Building, A.AptNum, R.Name, R.AptNum, R.Status, P.Number,
P.Type
FROM Apartments AS A
INNER JOIN Residents AS R
ON R.AptNum = A.AptNum
LEFT JOIN Phones AS P
ON P.ResID = R.ResID
AND P.Type =... more >>
How do i start Query optimization ?
Posted by aneesh at 2/26/2005 11:01:19 AM
Hi,
can anyone explain, how to start Query Optimizations ?
I think this is a common interview Question...
regards
Ar
... more >>
No temp table
Posted by Gyruss at 2/26/2005 9:50:04 AM
Is it possible to rewrite this delete so that a temp table isn't used?
key_1 and date_key form the primary key. I want to remove any rows with the
same key_1 and a date_key greater than today's date.
Cheers!
declare @today datetime
select @today = getdate()
select key_1, date_key
... more >>
How can I programatically delete records in tables...
Posted by trint at 2/26/2005 9:44:45 AM
Ok,
In my c# app, i have a string with an invoice number: "str = 12345".
Using sqlserver2k:
first of all, i understand the c# requirments for putting a command
string in, but don't know the sql command.
this is what i need:
tblPrintInvoice has one record with this column_invoice_number#.
tblI... more >>
Distinct For Only Some Columns In A Row
Posted by Jim Little at 2/26/2005 5:50:07 AM
Hello,
I'm stuck, and I have earnestly searched for an answer to this problem
during the past few hours...
I'm trying to work with this query:
SELECT T1.UserID, T2.MiscID
FROM Table2 T2 INNER JOIN Table1 T1 ON T2.ID = T1.ID
WHERE (T2.Category IN (2, 3, 4, 5)) AND (T1.ZipCode IN (22201,2... more >>
Remove table entry
Posted by shan at 2/26/2005 2:27:02 AM
Hi
I have a sql table called Album with two columes
The colums are
1)AlbumId
2)AlbumName
AlbumID is the primary key
I have 4 AlbumIds and 4 corresponding AlbumNames in the Album table
I’m trying to remove the last AlbumId and the AlbumName using asp.net
enterprice manager.
Thi... more >>
OT:Check it out AllAdvanatage is back
Posted by CPS at 2/26/2005 2:07:07 AM
http://www.surfjunky.com/?r=cps
... more >>
|