all groups > sql server (alternate) > october 2003 > threads for october 15 - 21, 2003
Filter by week: 1 2 3 4 5
how long a table blocked
Posted by rkusenet at 10/21/2003 4:35:06 PM
I have written a stored procedure to list out all tables in which
rows or the table itself is locked. The only information I am
not able to get is the time when the lock occurred. The way I
want is that if I run the procedure it should show all locks
on a table which are at least 5 or x seconds ... more >>
Sorting mixed type fields...
Posted by bostonpartykid NO[at]SPAM yahoo.com at 10/21/2003 3:51:58 PM
I have a field in my database which stores product codes. This field
is a varchar. Some users use characters in their codes but most just
use numbers. Whenever I go to sort the products by code the order of
the numbers go something like: 1, 100, 101, 2, 210, 220, 2500, 3, ...
I understand why... more >>
Replacing columnn name programmatically
Posted by qwert12345 NO[at]SPAM boxfrog.com at 10/21/2003 3:51:46 PM
Hi,
The following script does not return any resultset against a test db
while I know for a fact tables with letter "aaa" has columns that
contains "ccc".
What's wrong? the the inner cursor?
Thanks.
-- get all tbls with letter aaa
declare @tbl varchar(8000)
declare tblCursor cursor f... more >>
SQL Server questions???
Posted by dba_sybase2003 NO[at]SPAM yahoo.com at 10/21/2003 2:56:07 PM
Hi Folks,
I am a newbie when it comes to SQL Server 2000 and have a Sybase
background. How can I reset my sa password in MSSQL like we do it in
the runserver file(-p) in sybase??? Also, can I configure replication
using the standard edition of MSSQL server????
Thanks
Regards
dba_sybase2... more >>
Wrong week numbers
Posted by Stig Andersen at 10/21/2003 2:51:25 PM
Hi does anyone know how to make MS SQL server 2000 calculate the right week
number around new year ?
According to the help file, MSSQL should follow ISO8601, which ensures that
i.e. 2003 has only 52 weeks. but these two prove it wrong:
Select datepart(ww,'2003/12/31') --(wednesday -> retu... more >>
Date comparison problem
Posted by colin42 NO[at]SPAM btinternet.com at 10/21/2003 2:30:47 PM
Hi
I have a table that contains information that has start dates and end
dates. They are stored in short date format.
I have built a web page that initially returned all the information. I
then want to return information spcific to todays date, where I used
dim todDate
todDate = now
t... more >>
I'm baffled by the single quotes with STMT
Posted by qwert12345 NO[at]SPAM boxfrog.com at 10/21/2003 1:44:22 PM
Hi,
Don't worry about the vars, they are defined,
the following line give me an err of "Incorrect syntax near '.'."
Goal: to rename nonstardard column name.
EXEC sp_rename '+@tbuffer+'.['+@cbuffer+']','+Replace(+@cbuffer+','%[^A-Za-z0-9_#$@]%','')',
'COLUMN';
Thanks.... more >>
Converting IIF in Access Query to SQL Server
Posted by Robin Hammond at 10/21/2003 11:07:36 AM
I am trying to upsize a database to SQL server (on which I am a novice). In
Access as part of a much more complex query I had the following (from sql
view)
SELECT
IIf(InStr([ItemName],"*")>0,Left([ItemName],InStr([ItemName],"*")-1),[ItemNa
me]) AS ShortName FROM corp_info
Which gives a ret... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
general questions on this product (compatability)
Posted by jwagans NO[at]SPAM yahoo.com at 10/21/2003 10:18:50 AM
hi
I just gotta know:
what is the database that sql server creates/works with?
Can it be used in an oracle environment?
Or can it be uploaded to a Oracle db? (like access thru odbec)
thanks!!jim... more >>
setting DTS to use TCP/IP
Posted by jjone99 NO[at]SPAM hotmail.com at 10/21/2003 6:52:41 AM
Hello,
I've noticed on my DTS that it is connecting to the remote SQL Server
via Named Pipes. Not sure why I've been getting the following error:
[DBNETLIB][ConnectionWrite (WrapperWrite()).] but I wanted to change
the DTS from using Named Pipes to use TCP/IP. How to do it?
Also, if anyone ... more >>
Variable Table Names in DTS Package
Posted by junk NO[at]SPAM wendler.org at 10/21/2003 6:15:45 AM
I am attempting to export data on a daily basis via DTS to an XL
spreadsheet. I would either like to: a) have a separate worksheet in
the spreadsheet for each export or b) a completely different
spreadsheet for each export. Whenever I attempt to use a variable as
the name of my table in the DTS ... more >>
error,again
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/21/2003 3:09:28 AM
tentaively, got:
create #table(a,b,c,d)
insert into #table
select A,B,C,D
from s,t,x,y,z where y.price > 20
select *,
(select max(D) from
(select distinct top 2 with ties from #temp v where
v.B=W.B and v.C = W.c),
(select min(D) from
(select distinct top 2 with ties from #temp v where
... more >>
Cannot retrieve data in utf-8 from php
Posted by miquelpl2 NO[at]SPAM hotmail.com at 10/21/2003 1:14:08 AM
Hi.
I have a IIS server with php3 installed. I have SQL server database
and data stored in unicode format (nvarchar fields). In header of my
php I have the meta: <meta HTTP-EQUIV="content-type"
CONTENT="text/html; charset=UTF-8">.
I have the following problem:
- I trie to do a query usin... more >>
ORACLE or SQL SERVER (MS) ?
Posted by EnglishTeacher NO[at]SPAM ModernEnglish.com at 10/20/2003 11:51:40 PM
Which would be a more useful relational database server to learn
nowadays: MS SQL SERVER or ORACLE?
Thanks!... more >>
URGENT - - A floating point exception occured in the user process
Posted by riz_ahmd NO[at]SPAM yahoo.co.uk at 10/20/2003 11:20:31 PM
We get the following error message.
"a floating point exception occured in the user process. current
transaction is cancelled".
this message comes when trying to excute a stored procedure. This
exception is unpredictable.
OS : Windows 2000 (SP3)
Version: SQL server 2000 (SP3).... more >>
how to convert varchar to numeric ?
Posted by meh at 10/20/2003 10:08:28 PM
I have imported data from excel file. When data came to SQL table, the type
of AMOUNT column was varchar. I tried to convert and cast amount type of
amount column to number type but it does not allow me to convert.
What is the best way of importing data into SQL and type stays the same as
... more >>
Indexes slowing down BULK INSERT
Posted by David Sharp at 10/20/2003 9:42:05 PM
I've been doing some experiments with speeding up copying tables of
approximately 1 million rows between databases using BCP and BULK INSERT.
I noticed that the total time for removing the indexes (non-clustered) and
then recreating them after the BULK INSERT was significantly less than just
d... more >>
varchar and nvarchar issue
Posted by Vani Kancherlapalli at 10/20/2003 5:51:23 PM
Hi
The maximum length of a nvarchar could be 4000 characters while that of
varchar could be 8000.
We are trying to use unicode which would require that the datatype for
one our fields be converted from varchar to nvarchar. But looks like
this would result in loss of existing data.
Is t... more >>
SQL Setting Command
Posted by rc NO[at]SPAM (no-spam)bhfshops.org.uk at 10/20/2003 3:33:20 PM
Hi
Is there a sp command I can issue which will show me what the "sort
order" etc for my MSsql server.
I need to re-install it, but need to record what custom setting it has
if any before I wipe it.
I have to reinstall to reconfigure the RAID arry under it
Thanks
... more >>
Query problem
Posted by Gunnar Vøyenli at 10/20/2003 3:21:43 PM
Hi
Some days ago I posted a problem with a query.
Thaks to Dave and John, I got a little closer to a solution.
Their suggestion was a solution to my problem as I stated it, but the real
problem is a bit more complicated, so I have to expand the original problem
a bit.
The query has to handle u... more >>
DB question ... thanks
Posted by Useko Netsumi at 10/20/2003 1:13:19 PM
Suppose that I have the basic db structure as follow:
imgnum varchar(16)
description text
imagecode varchar(16)
note text
photographer varchar(16)
date date
location varchar(50)
The <imgnum> format is as follows(and its unique):
J... more >>
SQLAGENT.exe - Entry Point Not Found
Posted by TareqYasiji NO[at]SPAM hotmail.com at 10/20/2003 6:21:29 AM
Hi there;
I was trying to apply SQL SP3a on my windows 2000 server (SP4), but
the installation failed and when I rebooted my server the SQL agent
failed to start and I get the following error:
SQLAGENT.exe - Entry Point Not Found
the procedure entry point SFMapi0GetProfiles could not be locat... more >>
Default Fill factor
Posted by wumutek NO[at]SPAM yahoo.com at 10/20/2003 5:23:58 AM
Hi
There are a lot of articles about the fillfactor.
I did change the fill factor and that did not work as intended.
How do I get back to the default fill factor
I am using sp_msforeachtable undocumented database procedure
and when the indexes are rebuilt the fill factor that shows up
in or... more >>
Creation of reporting database
Posted by nielsonj1976 NO[at]SPAM yahoo.co.uk at 10/20/2003 4:47:03 AM
We have a production database, but due to the crippling load of some
reporting tools, we are looking to have a separate reporting database.
Due to it's nature, the reporting database doesn't need to be as up
to date as the master, perhaps it could be refreshed every evening?
What I wish to kn... more >>
BCP Deployment
Posted by limcyang NO[at]SPAM yahoo.com at 10/20/2003 3:51:35 AM
Hi all,
I am doing a project that involved with the big volume of data to be
uploaded to the SQL server. Due to the limitation at my employer's
site, I couldn't have the bulk admin right. I am looking at the
command BCP and wonder if there is any copyright issues if I were to
use BCP and to ... more >>
Sql Query help..
Posted by omavlana NO[at]SPAM rediffmail.com at 10/19/2003 8:14:22 PM
Hi,
I have writtem the query....
select
sum(
case when shmsharect >= 10000 then 1
else 0
end
) as cnt_big
,
sum(
case when shmsharect >= 10000 then shmsharect
else 0
end
) as shares_big
, sum(
case when shmsharect < 10000 then 1
else 0
end
) as cnt_small
, sum(
case when sh... more >>
top question
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/19/2003 4:25:26 AM
table(name,age)
need to find top 2 that are distinct by age.
error check: if two names are the same go to next top age).
table(name,age)
A 17
A 17 <<error
B 14
C 16
D 16
got a table like that and
select distinct top 2 age from table, returns:
A 17
A 17
--
... more >>
Generating a series of numbers or dates?
Posted by xntric78 NO[at]SPAM hotmail.com at 10/18/2003 10:26:57 PM
I want to generate a resultset that is just a series of numbers in
ascending order or perhaps a series of dates.. What I mean is, is
there a way to generate a temporary table of dates given an input of a
start date and an end date.. This table would then contain an entry
for each date in ascendi... more >>
top 2
Posted by u128845214 NO[at]SPAM spawnkill.ip-mobilphone.net at 10/18/2003 10:00:56 PM
#Table(class, name,exam,score)
A name1 math 100
A name1 math 88
A name1 Phy 98
A name1 Chm 98
A name1 SPT 89
A name1 math 23
A name1 math 45
A name2 math 54
A name2 math 79
A name2 Phy 79
A name2 Chm 44
A name2 SPT 34
A name2 math 45
A name2 math 65
B... more >>
Stored Procedures
Posted by Jarrod Morrison at 10/18/2003 6:45:00 PM
Hi all
Im relatively new to using stored procedures and im not sure if it is
possible to do what I am trying to do so any help here is greatly
appreciated. I am using the variable @MachineName which is obviously the
local machine name mainly in this procedure. What is loop through from the
fi... more >>
Urgent problem - Resord Set
Posted by Andrew at 10/18/2003 6:15:58 PM
How do I select the First Record only based on MemberID
The layout is PhotoID,MemberID,Title
1, 666, blah1
2, 555, blah2
3, 666, blah3
4, 777, blah4
6, 777, blah5
7, 999, blah6
8, 444, blah7
So the result Im after is
1, 666, blah1
2, 555, blah2
4, 777, blah4
... more >>
variable always empty in stored procedure
Posted by dfisherman NO[at]SPAM optonline.net at 10/18/2003 12:53:29 PM
In the code below, the statement 'Print @Sites' prints nothing, even
though the cursor contains 4 records, and 'Print @Site' prints the
appropriate values. Can anyone see my mistake? I am attempting to
print a delimited string of the values referred to by @Sites.
Thanks.
Dan Fisherman
... more >>
???VPN connection to an SQL Server and/or database
Posted by MikeTheBike NO[at]SPAM tpgi.com.au at 10/18/2003 5:06:58 AM
Hi All
Can we connect remotely using SQL Server Enterprise Manager from our
home PCs using a VPN connection, across the Internet, to an instance
of SQL Server(or a database on it) that resides on an ISP's Server?
Can this be done using a VPN IP connection? I believe a static IP is
required fo... more >>
Is this possible? please help (MS access query of sql database)
Posted by anthonyberet at 10/18/2003 1:03:05 AM
I work for an organisation that uses a bespoke document imaging system, the
database of which is an MS sql server.
We have MS Access and already use it for some querying of the database.
The database comprises a large number of distinct cases, which are
differentiated by case reference numbers, ... more >>
Capturing value of identity column for use later?
Posted by (Pete Cresswell) at 10/17/2003 11:39:17 PM
This doesn't work because the first INSERT is creating multiple
records for multiple projects. @@IDENTITY, then, contains the Identity
column value for the last tblWeekReportedLine record inserted.
Consequently, all the hours records are then associated with
that last value.
The source wor... more >>
How to delete duplicate records from a table ?
Posted by news.verizon.net at 10/17/2003 5:02:06 PM
I uploaded some data about 2 or 3 times and it keep appending it to the
table.
Now I want to keep only first duplicate and delete rest of.
Suppose part number 123 has been added 3 times so I want to keep only 1
record.
Thanks
... more >>
SQL server
Posted by Przemo at 10/17/2003 3:00:24 PM
Hi!!
I`m looking for SQL server but somekind of OEM version. The program witch
I`m working use the MSDE Desktop engine (5 user version) and I want to use
it at 12 user. The SQL 2000 server is expensive for me and I`m looking for
something cheap, becouse I use only a SQL database engine.
Thanks
... more >>
Outer join query
Posted by Gunnar Vøyenli at 10/17/2003 2:09:26 PM
Hi!
I have a problem with a query:
Two tables:
CREATE TABLE Emp (empno INT, depno INT)
CREATE TABLE Work (empno INT, depno INT, date DATETIME)
I want a list of all employees that belongs to a department (from Emp
table), together with ("union") all employeees WORKING on that department a
sp... more >>
SQL Statement select from one table where not in another table
Posted by lumiya NO[at]SPAM yahoo.com at 10/17/2003 1:24:31 PM
I have two tables with a 1-many relationship. I want to write a
select statement that looks in the table w/many records and compares
it to the records in the primary table to see if there are any records
that do not match based on a certain field.
Here is how my tables are setup:
Task Code... more >>
help in sql query
Posted by hallosenthil at 10/17/2003 12:19:04 PM
the relations are
MEMBERSHIP(membership_number (pk), cover_type(pk),
start_date(pk), end_date)
PERSON(person_number(pk), surname, initials, street_address, suburb, ,
membership_number)
DOCTOR(doctor_number(pk), surname, initials, street_address, suburb)
PROVIDED-SERVICE(person_nu... more >>
how to modify colum (alter table) of table that is replicated?
Posted by bdjensen at 10/17/2003 10:17:47 AM
Hello!
I have an MS SQL-server with an database, that runs replication. In this
database there is an table with an column
i want to extend; varchar(50)->varchar(60).
But I get this error (using design window of Enterprise Manager): Cannot
drop the table 'MytableName' because it is being used ... more >>
Trigger failing after table structure change
Posted by Dave C. at 10/17/2003 8:23:53 AM
Hello,
I have created the following trigger:
CREATE TRIGGER tr_UDFTest ON UserDefinedFields FOR INSERT, UPDATE
AS
DECLARE @foobar varchar(100)
SELECT @foobar= foobar FROM inserted
IF ( @foobar = 'foobar') INSERT INTO LogTable (LogText) values ('Found foobar')
ELSE INSERT INTO LogTab... more >>
Sql query... help
Posted by Omavlana Omavlana at 10/17/2003 7:41:28 AM
Hi, the following query returns
select shmsharect as shares, shmctryres from shrsharemaster
where shmctryinc = ''
shares shmctryres
0 SGL
0 MY
0 SGL
10000 MY
27000 SGL
0 ID
0 MY
5000 MY
0 ID
0 JP
3000 CN
1000 CN
12000 CN
0 IN
I have changed the query to
sele... more >>
Copy without Locks
Posted by ryanofford NO[at]SPAM hotmail.com at 10/17/2003 2:24:00 AM
I have a stored procedure which copies data from a view into a
temporary table (x2) and then from the temporary table into a table
which the users use. It takes 1 minute to get the data into the temp
table and seconds to update into the final one (hence the two stages).
When I do the initial c... more >>
Cascading Blocking ?
Posted by ryanofford NO[at]SPAM hotmail.com at 10/17/2003 2:16:42 AM
We have a situation that occurs every so often with blocking of
various databases on one server (Win200 SQL7). It appears to happen at
random, so I'm assuming it originates from something a user does and
not a regularily run process.
We've examined the data available to us and used the very he... more >>
Using @@IDENTITY in manual commit mode
Posted by deepak.j NO[at]SPAM bigpond.com at 10/17/2003 1:01:22 AM
Hi,
I'm using the JDBC API's to access a MS-SQL 2000 DB.I have a
manual-commit transaction block involving multiple inserts and
updates. One of the step involves retrieving the auto generated key
(Identity column) which, I presume can be done with @@IDENTITY. My
Question is: Will @@IDENTITY ... more >>
How to speed Stored Procedure?
Posted by marcj NO[at]SPAM netlane.com at 10/17/2003 12:40:16 AM
Hello,
I have wrote a stored procedure but its real slow. Its activated by a
button on web page but its takes to long to process and the web server
gives a timeout message after 5 minutes.
Is there anyway to speed up this stored procedure? What am I doing
wrong here?
--------------------... more >>
Trigger problem
Posted by manoj NO[at]SPAM direct2s.com at 10/16/2003 11:46:31 PM
Hi Folks,
My basic requirement is I want to write a trigger on a table based on
certain conditions post-update from another table in another database.
The actors in this scenario are:
Database D1, Table T1
Database D2, Table T2, T3
Action:
T1 updates T2
Requirement:
As soon as T2 is... more >>
Moving SQL DB's from machine to another with the same name
Posted by Go Browns! at 10/16/2003 3:13:21 PM
hello everyone. i am new to the group so i aplogize if this question has
been answered recently...
our sql db machine is too old. we bought a new server with which to replace
it. the trick is, we want to keep the name of the machine and db instance
the same.
obviously, we don't plan on h... more >>
using SQL case statements HOW???
Posted by lisauofi NO[at]SPAM yahoo.com at 10/16/2003 2:31:04 PM
I'm trying to make a view that uses organization name from one table
and contact first and last name from another table. In the view I
have a field that I want to show Organization followed by the main
contact. Problem is if the organization field or name field is NULL
then it doesn't show any... more >>
List with all Error numbers
Posted by Jan Entzminger at 10/16/2003 12:09:48 PM
Hi. I am searching for a reference with all error numbers an descriptions
for ms sql odbc.
Has anybody something for me?
Thanks a lot.
Greeting Jan Entzminger
... more >>
serializable read and lock mode
Posted by rkusenet at 10/16/2003 10:57:58 AM
Hi,
Version Info: SQLSERVER 2000 SP3
I am trying to understand how SQL Server works with SERIALIZABLE read.
I am fairly new to SQL Server, having mainly worked with Informix.
We are getting lock timeout error in our application. Our lock timeout
is set to 20 seconds. I am trying to investig... more >>
What type of TRIGGER to use?
Posted by digitalcolony NO[at]SPAM yahoo.com at 10/16/2003 10:57:56 AM
Is there a type of TRIGGER that I can use to do do post-INSERT
processing? I've got one table that I never want to block the INSERT,
but instead need to do post INSERT processing on. The only way I know
to do this is via a JOB, which isn't ideal in this scenerio.
mas... more >>
Help with an WHERE NOT EXISTS subquery please.
Posted by KathyBurke40 NO[at]SPAM attbi.com at 10/16/2003 10:45:52 AM
Hi, I have 2 tables:
tblStations StationID
Station
tblStationUser RecordID
UserName
Station
I'm trying to come up with a dataset that contains the
tblStations.Station
EXCEPT for where that Station exists in tblStationUser where the
U... more >>
SQL Stats in a form
Posted by Rudi Groenewald at 10/16/2003 12:04:49 AM
Hi there...
How do I get to extract info like, current Database logged in user or
general stats like, ram usage... etc etc etc into a form if I use Microsoft
Access 2002 for my forms application?
Thanks in advance
Rudi
... more >>
iif to case for sql server 2000
Posted by SPAFA at 10/15/2003 9:50:43 PM
I am trying to convert this query to slq server 2000 and I cant figure
out how to get rid of the IIF statements and make them case statements.
If anyone could help I would greatly appreciate it!
Thanks!
spafa
SELECT Jeopardy.Main, Jeopardy.Name, Jeopardy.COMMENTS2,
Je... more >>
Transaction - how to?
Posted by PipHans at 10/15/2003 6:30:09 PM
Hi,
Just wondering...Suppose I have a couple of stored procedures that updates
some tables. How can I "wrap" these in a transaction that can be rolled back
in case of an error? I cant find any good documentation on the subject (I
assume I wanna use BEGIN TRANSACTION and COMMIT - or something s... more >>
Data/records in other languages
Posted by Eric at 10/15/2003 5:55:14 PM
Hi,
Can the English version of Sql Server (or other DBMSs) store data/records in
other languages (e.g. French, Chinese, etc.) or
do you have to use the French version of Sql Server to store French data?
Where can I go to read more on this?
Thanks.
Eric
... more >>
SQL Server 2000 Rollback?
Posted by Jason Scott Smi at 10/15/2003 3:59:43 PM
I've accidentally (of course) overwritten all Intranet database tables
in production with those in dev using DTS. I'm meant to only copy over
new tables but somehow got everything instead. Server guys said backups
weren't running for some reason. Is there anyway I can revert this
database b... more >>
Interrupt processing of a large insert process in SQL server 2000.
Posted by oberfire NO[at]SPAM excite.com at 10/15/2003 3:39:32 PM
I'm running a resource-intensive stored procedure, which reads a file
with about 50,000 lines with a BULK INSERT into a temp table, then
goes through it and inserts a record for each line into another table.
While this procedure is running, SQL server stops accepting any other
requests coming fr... more >>
Syntax for UNIQUE constraint
Posted by Guinness Mann at 10/15/2003 2:56:27 PM
I have an existing table:
CREATE TABLE TestQuestions (
qId int NOT NULL IDENTITY(1,1)
CONSTRAINT PK_TestQuestions PRIMARY KEY NONCLUSTERED,
testId int NOT NULL
REFERENCES Tests(testId)
ON DELETE CASCADE,
objectiveId varchar (30) NULL
qType int NOT NULL
CONSTRAINT... more >>
How to put result from EXEC into a variable
Posted by Mario Pranjic at 10/15/2003 2:40:07 PM
Hi!
Can anybody give me a hint how to put sa resut from EXEC into a
variable.
EXEC is called:
EXEC(@TmpQuery) and it returns a single int value (SELECT COUNT(*)
....)
Thanks!
Mario.
... more >>
Create date field from substring of text field
Posted by markcash NO[at]SPAM Hotmail.com at 10/15/2003 1:57:48 PM
I am trying to populate a field in a SQL table based on the values
returned from using substring on a text field.
Example:
Field Name = RecNum
Field Value = 024071023
The 7th and 8th character of this number is the year. I am able to
get those digits by saying substring(recnum,7,2) and ... more >>
Sql Query Help - self join
Posted by shmulik28 NO[at]SPAM yahoo.com at 10/15/2003 1:54:44 PM
I have a table:
MasterFileID FileName ParentID
1 Hello <null>
2 World 1
3 Another <null>
4 Again 1
I want a query that will return the following result set... more >>
Haw can I insert null value from a query
Posted by stefy at 10/15/2003 1:26:27 PM
I'd like insert null value from a query but i can do it,
if my query is :
UPDATE table:name UPDATE euro='' WHERE id='5';
i have a sybase message warning like this :
Error converting data type varchar to numeric.
Why ????
... more >>
Query Date Type
Posted by Leonardo Almeida at 10/15/2003 12:11:27 PM
Hi,
I have a table with the follow fields :
ID - Int
Date - Datetime
I need to make a simple query to result the records between to dates
with a single ID.
Ex.: Get the records between 01/08/2003 to 30/08/2003 only from ID=230
I´m using the follow :
ADOQuery1.Close;
ADOQuer... more >>
Determining a mySQL servers status.
Posted by Iaiken at 10/15/2003 11:55:03 AM
I am using vb.net and the myoledb provider.
I've run into a problem where what I need to do is open a database
connection to a mysql server, easy. The problem arrises in that I want
to, if the server cannot be found, open from a locally stored
encrypted XML file.
Works fine when t... more >>
Query to find a value in column b based on an aggregate function on column a?
Posted by AndyL at 10/15/2003 11:15:43 AM
Hi,
Suppose I have a table containing monthly sales figures from my shop
branches:
Branch Month Sales
-----------------------
London Jan 5000
London Feb 4500
London Mar 5200
Cardiff Jan 2900
Cardiff Feb 4100
Cardiff Mar 3500
The question I... more >>
Consulta de SQL (Admin Corporativo)
Posted by Cano at 10/15/2003 8:36:39 AM
Como lo hago para tener o usar el Administrador corporativo en mi computador
si el SQL esta instalado en el servidor ?
lo que pasa es que en mi computador tengo instalado el Windows 2000 Server y
el SQL 2000, pero ahora me voy a bajar a Windows 2000 Professional y el SQL
no lo podre instalar y... more >>
How to pass a parameter to a view?
Posted by benito111 NO[at]SPAM juno.com at 10/15/2003 8:25:37 AM
Hi Everyone,
Is there an easy way that I could pass a filter (variable) unto a view
via stored procedures? I would appreciate your suggestions.
Benito... more >>
Version Control for SQL Code
Posted by jroberts NO[at]SPAM renewalinc.com at 10/15/2003 6:43:42 AM
We've been using CVS for our HTML, JAVA etc..
Now we would like to use it for our SQL CODE to. We have a large
database with many stored procedures.
I would like to have something using Ant like:
Download the latest version of source code.
If the SQL patch has been updated, run the patch... more >>
Implicit conversion of datatype text to nvarchar is not allowed.
Posted by kumar_amit NO[at]SPAM delhi.tcs.co.in at 10/15/2003 5:25:19 AM
I am facing a problem while using SQL Server with VB application.
Implicit conversion from datatype text to nvarchar is not allowed.
Use the convert function to run this query.
When i see the trace file, i see one stored procedure called but no
lines of code get executed, and immediately aft... more >>
Sql query
Posted by kiran NO[at]SPAM boardroomlimited.com at 10/15/2003 12:00:54 AM
Hi,
I need help on modifying this SQL query.
select count(*)as cnt, sum(a.shmsharect)as shares,
b.cdename
from shrsharemaster a,
shrcodemaster b
where b.cdecode = a.shmtype
group by b.cdename
The above query returns:
4 0 Individuals
4 27000 Nominees
1 0 Others others
1 0 Unit... more >>
|