all groups > sql server (alternate) > july 2003 > threads for july 22 - 28, 2003
Filter by week: 1 2 3 4 5
What's the equivalen function of StrConv ([FirstName] , 3 ) in ACCESS in Sql Server 2000?
Posted by sohelcsc NO[at]SPAM yahoo.com at 7/28/2003 11:18:53 PM
HI,
i got a problem while using StrConv function in sql server.
My requirement is:-
suppose in a name field i have "jhon smith" Now i want to run a sql
which will give me the result like "Jhon Smith"--which means upper
case first.
Now i am running a query like below which is giving me "Jhon... more >>
Microsoft Course 2073?
Posted by dnvs4 NO[at]SPAM aol.com at 7/28/2003 11:13:10 PM
Hi all,
Does someone have the material(PDF or PPT) of this course: Microsoft Course
2073?
Thanks,... more >>
query/read database size?
Posted by Rob Wahmann at 7/28/2003 6:27:19 PM
I have a web-based admin section for a site and I would like to be able to
query the SQL Server database size and display it within my admin area. Is
there a function or method of doing this? My database is hosted by a third
party...
I appreciate any tips or advice you can provide!
Rob
... more >>
Problems with JDBC
Posted by okai at 7/28/2003 4:51:50 PM
I downloaded the latest version on JDBC from Microsoft and I got problems.
Indeed, when fetching a smallint from SQL Server i got instead an Integer.
How can i do to avoid such a problem?
Some hints?
many tanks, gaetano
... more >>
Temp Tables Vs Temp variables
Posted by rhein NO[at]SPAM mutualofenumclaw.com at 7/28/2003 3:53:03 PM
I have an application that I am working on that uses some small temp
tables. I am considering moving them to Table Variables - Would this
be a performance enhancement?
Some background information: The system I am working on has numerous
tables but for this exercise there are only three that re... more >>
Query on 2 bases
Posted by TNR at 7/28/2003 3:31:42 PM
How to make a query which contains fields from two different bases ?
Thanks in advance.
ReN
... more >>
Delete a file from the Server
Posted by rvanarnam NO[at]SPAM aol.com at 7/28/2003 11:12:32 AM
I have a table in my database on SQL Server which holds a file name
that refers to a file that is stored on the server. I would like to
create a trigger to delete this file from the server if the row in the
table is deleted. I have been trying to use this command in a trigger
(<filename> is th... more >>
Inter-Database References
Posted by Thierry Marneffe at 7/26/2003 11:55:38 AM
Hello
Suppose a database Db1 with tables tl1 and tl2 and a second database db2
with tables tl3 et tl4.
Is it possible to make a join between tables of the two databases ?
As for example, Select * from tl1 INNER JOIN tl3 where tl1.Field1 =
tl3.Field3
Thank for any help
Thierry
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQL-2000 GUI
Posted by Dagwood at 7/26/2003 10:25:21 AM
Good morning:
At least it's morning where I am. :)
I have a rather newbie question I'm afraid. I have VisualStudio.NET, and
have installed it along with SQL server. However I can't seem to find an
administration front-end to SQL, other than the VisualStudio, which is
ok for creating databas... more >>
dts copy text to table only
Posted by trintsmith NO[at]SPAM hotmail.com at 7/26/2003 9:02:47 AM
how do i specify the table destination only not the whole database
from a text.txt source?
thanks,
trint... more >>
How to create Cube
Posted by biswajitbarik NO[at]SPAM rediffmail.com at 7/25/2003 11:40:13 PM
Hi All,
I want to create a cube using MSSQL2000 i dont know any thing how to
create and what is parameter required so if any body help me i will be
thankfull to him/her.For information : i have 4 tables
custdetailtable which contain all about a customer as per example
customer ID,name,add,CUS... more >>
Comparing queries for flagging conflicts
Posted by Alpay Eno at 7/25/2003 10:24:49 PM
Hello all... I'm stuck, I cannot figure out how I should go about flagging
conflicts on a sheduling app. I currently have 8 columns (school grades)
that have class over the course of 9 periods. I am populating the asp page
fine, and making changes to the database with forms lists. I need to compa... more >>
sql size vs. access size
Posted by Rob Wahmann at 7/25/2003 4:56:11 PM
I have a SQL Server database that is showing 2853.44 mb in size but when I
export the data into MS Access the size is less than 1 mb. Can anyone tell
me how to reduce the size of my SQL Server database so that it's less than
15 mb?
Thanks in advance! Rob
... more >>
Index Tuning Wizard
Posted by Chloe Crowder at 7/25/2003 2:41:50 PM
Hi
I tried running ITW against one of our databases, and it came up with a
number of suggestions, but also filled the Application Log with messages
like:-
The description for Event ID ( 4 ) in Source ( ITW ) could not be found. It
contains the following insertion string(s):
Error in Parsi... more >>
ALTER Table query
Posted by advertiseallyouwant NO[at]SPAM hotmail.com at 7/25/2003 1:52:24 PM
Hi, I just want to know to turn this:
CREATE TABLE [dbo].[tblTierCs] (
[idTierC] [int] NOT NULL ,
[txtNoEmploye] [varchar] (50) COLLATE French_CI_AS NULL ,
[noSubDomain] [int] NOT NULL ,
[txtNameTierC] [varchar] (50) COLLATE French_CI_AS NOT NULL ,
[noOldTierC] [int] NULL ,
[noRSDTierC]... more >>
Merge the results of two queries
Posted by Philippe Bouffaut at 7/25/2003 11:32:17 AM
Hi all,
Here is my problem, I have 3 tables :
People
-------------
IDPeople
Firstname
Lastname
Cars
------------
IDPeople
Carname
Boats
------------
IDPeople
Boatname
1 person can have 0 or n car/boat
I want to a result set displaying : Firstname, Lastname, NumberOfCars,
N... more >>
NOT problem. this should be easy
Posted by andy NO[at]SPAM pepperell.net at 7/25/2003 11:11:05 AM
Should be easy, but I've been trying to figure this out for about half
an hour with no luck. There is a table 'Cybex' which has all the Cybex
products we sell, and a table 'Datasheets' which contains a list of
the datasheets available for products. Both tables have a PartNumber
column.
On wit... more >>
speeding up SQL query time
Posted by davidsheets NO[at]SPAM wdsrc.com at 7/25/2003 10:42:09 AM
Consider this SQL Query:
-----------------------------------------------------------------
SELECT c.CASE_NBR, DATEDIFF(d, c.CREATE_DT, GETDATE()) AS Age,
c.AFFD_RCVD, c.PRV_CRD_ISS, x.RegE, x.Type, x.Fraud,
c.CUST_FN + ' ' + c.CUST_LN AS CustFullName,
c.ATM_CKCD_NBR, x.T... more >>
DTS execution from client machine fails connecting to Oracle
Posted by holysmokes99 NO[at]SPAM hotmail.com at 7/25/2003 9:38:15 AM
I have created a DTS package that pulls data in from Oracle into SQL
Server. When I run it directly on the server (from Enterprise
Manager), it works fine. When I run it from Enterprise Manager on a
client machine that does not have the Oracle client software, it does
not run, giving me the erro... more >>
YYYY-MM-DD not working in UK
Posted by t.google NO[at]SPAM wjohnson1.com at 7/25/2003 8:26:34 AM
The following query works fine against SQL Server 2000 here in the US:
SELECT * from TNEWSARTICLES where CreatedOn < '2003-04-25 14:22'
But in the UK, it returns this error:
80040e07: The conversion of a char data type to a datetime data type
resulted in an out-of-range datetime value
I... more >>
Total spaceused and total allocated
Posted by kydongau NO[at]SPAM yahoo.com.au at 7/24/2003 10:54:34 PM
Anyone has a "one sql statement" to get the total spaceused and total
space allocated of an instance ? ie same as sum of relevance fields
from sp_spaceused for each database in an instance, that works accross
version of mssql from 6 onward.
Thanks
KD... more >>
Restore Database daily without SP's
Posted by masri NO[at]SPAM vsnl.com at 7/24/2003 10:25:02 PM
Hello all,
I have the following requirement (SQL 2000, SP2)
1. Need to restore production database(A) to another database (B) on
another server (No direct connection)
2. In the restored back-up(B) SP codes should not be visible (even to
sa) or all SP's can be deleted .
3. This nee... more >>
How to design "product kits"
Posted by poec NO[at]SPAM yahoo.com at 7/24/2003 6:34:48 PM
Hi,
I've run into a bit of a sticky design issue. We have products in
three categories which I will call 'A', 'B' and 'C'. We have "kits"
which contain three products, one from each category.
Below is some sample SQL to set things up, but I need to ensure that
each kit gets three products... more >>
Null Date Values and order by
Posted by paradigmis NO[at]SPAM hotmail.com at 7/24/2003 4:18:35 PM
How do I order a query by a date field ASC, but have any NULL values
show up last? i.e.
7/1/2003
7/5/2003
7/10/2003
<NULL>
<NULL>
Any help will greatly be appreciated... more >>
Updating the database
Posted by Debra Ehrlich at 7/24/2003 4:03:02 PM
I'm having a difficult time calling UPDATE when my 'WHERE" clause calls ID,
which is numeric and the primary key. I found that I can do a SELECT just
fine with "WHERE ID".. Is there something special about UPDATE that i'm not
getting? I've searched the internet but it appears that what I'm doi... more >>
One Command Keeps Causing "'tempdb' is full" Error
Posted by jaykchan NO[at]SPAM hotmail.com at 7/24/2003 2:40:02 PM
I keep getting the following error message when I run a serie of SQL
commands:
Server: Msg 9002, Level 17, State 6, Line 15
The log file for database 'tempdb' is full.
Back up the transaction log for the database
to free up some log space.
I have tried "dump transaction tempdb ... more >>
Moving Data tables between SQL Servers
Posted by Tom Loach at 7/24/2003 2:02:15 PM
I have user that we just migrated his Access database to SQL
Server. All went well with the migration, but then he came up with
another requirement to be able to replicate the database to a local
SQL server living on the hard drive of a laptop. Before the migration
he just copied the entire Ac... more >>
Searching character data using like
Posted by user_google NO[at]SPAM hotmail.com at 7/24/2003 1:04:46 PM
Hello All,
SQL 2000, case insensitive database
I have a situation where I need to find abbreviations in the rows in a
table. The rule i came up is, get all the rows from the table where
there is more than one character is capitalized consequtively eg.
"USA", "TIMS", "AIR"
Here is the sam... more >>
Deadlocks and use of nolock
Posted by database_database2001 NO[at]SPAM yahoo.com at 7/24/2003 12:52:42 PM
I am getting lot of deadlocks in my application. As it is very complex
ti avoid deadlocks at this stage of application we have done few steps
to lessen the impact.
We have added retries after deadlock is capturted.
We have added select * from TABLE with (nolock) wherever possible.
But interes... more >>
Database alias name
Posted by news at 7/24/2003 11:33:38 AM
How would I create a database alias name for the following database
testingdatabase.com
This database exisist on a remote server. I have tried using the database
name as
server.[testingdatabase.com].dbo.table
were server is a linked server using sp_addlinkedserver
[testingdatabase.com] is ... more >>
How To Run SQL Script
Posted by ehchn1 NO[at]SPAM hotmail.com at 7/24/2003 12:24:16 AM
Hi,
I have a SQL script which create few tables.
Currently, I have to paste the scripts to the SQL Enterprise Manager
and highlight one by one to run it. It can't seem to run it as "one
unit".
My script looks like below:
CREATE TABLE T1 AS ...;
CREATE TABLE T2 AS ...;
Any comments?... more >>
Like '' & '' & ''
Posted by SkunkDave at 7/23/2003 11:23:59 PM
Having this description column in a table
"Cookies, peanut butter sandwich, regular"
When using this WHERE clause:
WHERE (((Food_Data.Description) Like "*Butter*" & "*Peanut*"));
I dont get any results, however when using it this way round
WHERE (((Food_Data.Description) Like "*P... more >>
how to write (post) to a url
Posted by wukie at 7/23/2003 10:29:29 PM
I am at a client that uses an xml form to email from java rather than
setup a true email server. Does anyone have any suggestions as to how
ms sql can write to the xml or maybe even call java or xml directly.
This will be done as part of the error detecting process of various sql
jobs in EM.
... more >>
Switch to another user
Posted by Peter Kenyon at 7/23/2003 9:52:25 PM
Hi,
Is it possible to switch to another user's credentials after logging in? I
seem to remember that there is a stored procedure for this, but I can't find
details anywhere. I want to temporarily suspend my login's admin privileges
and become an "ordinary" user, for testing purposes.
Thanks... more >>
Visual Basic 6.0 connect to SQL Server 2000
Posted by julie_tennyson NO[at]SPAM averydennison.com at 7/23/2003 1:35:21 PM
We have forms written in Visual Basic 6.0. They were previously
written for an Access database which was moved to SQL Server 2000.
Here's the connect string I used:
ODBC;UID=visualbasic;PWD=password;SERVER=MPSQL;DRIVER={SQL
SERVER};DATABASE=MPPhoto
The user visualbasic and the user logged ... more >>
problem with join
Posted by phantomtoe NO[at]SPAM yahoo.com at 7/23/2003 11:50:31 AM
Hello,
I am having a problem with a join. Either I am just not seeing the
obvious, it isn't possible, or I need to use a different approach. I
have an application with a vsflexgrid that needs to display the
following:
filenumber, BL, Container_BL, BL_HBL, HBL, Container_HBL
The tables ... more >>
Automating installation of ODBC data source
Posted by SkunkDave at 7/23/2003 10:49:53 AM
Is there a script anyone has that will automate the addition of an
access database to the OBDC datasources in control panel.
Thanks
... more >>
SQL Server Hardware Setup
Posted by armusis NO[at]SPAM yahoo.com at 7/23/2003 4:31:27 AM
I have a SQL Server 2000 database that I will need to take from
development and put into production. Currently the database is on a
workstation running Windows 2K Server for development purposes. The
database will have dozens of users with data entry capability and
hundreds of users with viewing... more >>
log file for database 'tempdb' is full
Posted by senthurs NO[at]SPAM yahoo.com at 7/22/2003 10:31:22 PM
Hi
I am getting this common error once or twice a day:
Error: 9002, Severity: 17, State: 2
The log file for database 'tempdb' is full. Back up the transaction
log for the database to free up some log space.
provided......
1. My log file drive has more than 20 GB free out of 30 GB
2. B... more >>
Create a copy of a table in sql server
Posted by billzimmerman NO[at]SPAM gospellight.com at 7/22/2003 5:57:13 PM
I have a table I'd like to copy so I can edit it and play around with
the data. How do I create copy of a table in SQl Server?
Thanks,
Bill... more >>
Indexes on Bulk Insert data
Posted by Chris at 7/22/2003 12:57:50 PM
Any help would be appreciated.
I am running a script that does the following in succession.
1-Drop existing database and create new database
2-Defines tables, stored procedures and functions in the database
3-Imports data using bulk insert
4-Analyzes data using stored procedures
I would ... more >>
what is equivalent of format(date) function of MS Access in MS Sql Server 2000
Posted by sohelcsc NO[at]SPAM yahoo.com at 7/22/2003 1:03:35 AM
Hi All,
I am facing a problem with a sql what i used in MS Access but its not
returning the same result in MS Sql Server 2000. Here i am giving the
sql:
SELECT TOP 3 format( MY_DATE, "dddd mm, yyyy" ) FROM MY_TAB WHERE
MY_ID=1
The above sql in ACCESS return me the date in below format in o... more >>
DTS transfert AS400 --> SQL Server 2000
Posted by dchaumeil NO[at]SPAM yahoo.fr at 7/22/2003 12:21:50 AM
I have an ODBC link to DB2 Database. I can see the values of the DB2's
tables in Access but not in SQL Server DTS.
IN DTS, I connect the Source but when i want to see the values in the
Data transformation task, i have this message :
HResult of 0x90040e37 (-2147217865) returned. Erreur inattend... more >>
|