all groups > sql server (alternate) > october 2005 > threads for october 8 - 14, 2005
Filter by week: 1 2 3 4 5
Database Access over Internet
Posted by le_mo_mo NO[at]SPAM yahoo.com at 10/14/2005 8:02:58 PM
I was wondering if any body has used Internet as a WAN (Wide Area
Network) to provide database access. I know about web services but I
like to experiment with using Internet as a extended network (web
server behind one router and database behind another). Any ideas on
where to look for this?
... more >>
determine tables that are Simple recovery
Posted by rcamarda at 10/14/2005 10:45:52 AM
I need a sql statment to return a list of tables for a given database
where the Recovery Model option is Simple.
TIA
Rob
... more >>
MS SQL Server 2000 - Search a table with 300,000+ records in less then a second or two
Posted by nydefender at 10/14/2005 9:01:25 AM
I have one table with 300,000 records and 30 columns.
For example columns are ID, COMPANY, PhONE, NOTES ...
ID - nvarchar lenth-9
COMPANY - nvarchar lenth-30
NOTES - nvarchar length-250
Select * from database
where NOTES like '%something%'
Is there a way to get results from this query in ... more >>
Wrong default constraint shown from Object Browser in Query Analyser
Posted by jbtaylor16 NO[at]SPAM fuse.net at 10/14/2005 8:42:44 AM
I have several default constraints defined on a table. When I use the
Object Browser and expand the constraints for this table and
right-click and then select "Script Object to New Window As Create", a
create constraint statement for a different default constraint is
displayed than the one I ju... more >>
Unique Selections In Back End
Posted by Neil at 10/14/2005 8:11:41 AM
I am using SQL 7 with an MS Access 2000 MDB front end, using bound forms
with ODBC linked tables. In one form, the user needs to be able to check a
box to select one or more records. This is accomplished with a local table
containing two fields: the primary key value of the SQL table and a boo... more >>
Tracking user activities
Posted by byrocat at 10/14/2005 7:34:22 AM
Sybase and DB2 both have the capability of tracking user activities at
a number of levels: invalid access attempts to databases, table, etc.;
creation/deletion/modification of database objects/users/groups,
grants/revokes.
For MS SQLServer, the only setting that I've seen in the documentation
... more >>
Column By Column Comparison
Posted by csomberg NO[at]SPAM dwr.com at 10/14/2005 3:00:44 AM
SQL Server 2000
I will to compare a normal table with a replicated audit table having
identical columns. I wish to report on the differences between the
data.
How can I loop though a "column list" in TSQL rather than explicitly
naming each column to compare ?
Thanks,
Craig
... more >>
Relational Database Usage survey
Posted by Rajeev at 10/14/2005 2:11:46 AM
Dear friends
I am conducting a survey on Relational Database usage and would like
your help. The study is part of my MBA Dissertation.
Could you kindly spare 5 minutes to take part in this survey?
http://FreeOnlineSurveys.com/rendersurvey.asp?id=120816
Thanks
Rajeev
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Organization tree
Posted by Juanito at 10/14/2005 12:00:00 AM
Any recomendations on how to store organization trees on a database with
lots of paths and branches? Any white papers out there that explain this?
Thanks
... more >>
Using "SELECT * " is a bad practice even when using a VIEW instead of a table?
Posted by serge at 10/13/2005 10:30:33 PM
Using "SELECT * " is a bad practice even
when using a VIEW instead of a table?
I have some stored procedures that are
identical with the difference of one statement
in the WHERE clause. If I create a single View
and specify also in this View the WHERE clause
that is common in these stored pr... more >>
Type Mismatch Error On Bulk Insert
Posted by Mike at 10/13/2005 8:56:28 PM
I am getting a type mismatch error when I do a bulk insert.
---Begin Error Msg---
Server: Msg 4864, Level 16, State 1, Line 1
Bulk insert data conversion error (type mismatch) for row 1, column 14
(STDCOST).
---End Error Msg---
The STDCOST is set to decimal (28,14) and is a formatted in Ac... more >>
Bulk insert
Posted by Michael Houmaark at 10/13/2005 7:54:22 PM
Hi
I have a text file with this information
-BEGIN----------------- tekst.txt-------------
10, "firstname", "lastname"
11, "Mette", "Larsen"
--| |--
6 000 000, "Michael", "Houmaark"
-END-------------------- tekst.txt-------------
I use this SQL-query
-BEGIN------------------SQL---------... more >>
Overflow error
Posted by Mike at 10/13/2005 7:35:16 PM
I am trying to use the bulk insert command but I am getting the following
error:
---Begin Error Msg---
Server: Msg 4867, Level 16, State 1, Line 1
Bulk insert data conversion error (overflow) for row 1, column 3 (PRICE).
---End Error Msg---
The data is formatted as a number, single with 1... more >>
Bulk Insert Command
Posted by Mike at 10/13/2005 5:48:50 PM
I am trying to use the 'Bulk Insert' command to load a data file into a
MS-SQL db. The line I am using is:
Bulk Insert SVC_Details From "C:\XFILE.TXT" With (FieldTerminator = ',')
I have tried the file name with " around it and with ' around it and both
the " and ', but every time the Quer... more >>
Update One Based on ANother Table
Posted by Mike at 10/13/2005 1:11:12 PM
Here is my situation;
I have two tables in a MS-SQL DB. One table with dollar amounts and service
codes. I have a second table that I want to move some information into from
the first table. The catch is I want to move one field as is from the first
table to the second, but the rest of the ... more >>
Defragment Heap Tables
Posted by kmounkhaty NO[at]SPAM yahoo.com at 10/13/2005 12:04:30 PM
Hi guru,
I've been new company for only a month and started analysing Index
Fragmentation.
After I ran DBCC DBREINDEX and capture data into permanent table, I 've
seen lots of tables with no indexes. These tables showed:
Very low scan density,
High extent fragmentation
High Avg. Bytes F... more >>
Help with Query
Posted by Masterpop at 10/13/2005 4:17:15 AM
Hi,
I have the following table:
Column 1 Column 2
A A
A B
A C
B F
B F
C G
C A
I need a query to return the following:
A null
B F
C null
How can I do that?
Thanks,
ALex
... more >>
Is logging the execution time of Stored Procedures with standard settings possible?
Posted by uli2003wien NO[at]SPAM lycos.at at 10/13/2005 12:14:03 AM
Dear group,
is it possible in SQL-Server to see when a stored procedure was
executed ?
I would say it is only possible with some traces but not with the
standard settings.
For a short answer on that matter i'd be thankful.
Regards
Uli
... more >>
registering SQL Server not in domain
Posted by Ellen K at 10/12/2005 1:52:08 PM
Hi all,
We have standardized on Hyperion as our reporting tool. So far I have
only set up a couple of Access databases as data sources for it. Now
there is a request to report off our eOn (telephony management) SQL
Server database using Hyperion. The eOn SQL Server box is in a
workgroup th... more >>
Problem with SUM
Posted by Ray Greene at 10/12/2005 12:00:00 AM
SQL newbie alert...
I have a table with the fields Location, MachineName ,Hours and Date.
(The actual database is more complex but it will do for the purposes of this
post)
I want to return Location, MachineName and the sum of the hours between two
dates. Here is an idea of what I need, al... more >>
Join statement
Posted by Zeno at 10/11/2005 6:56:36 PM
Hi.........
Its been awhile since I've touched SQL statements, so I need some help
with writing a JOIN statement to query 3 tables.
The dB has 3 tables with values
Applications
-Application_code(Primary key)
-Application_name
Applications_Installed
-Computer_name(Pri key)
-Application... more >>
AutoNumber vs. Key
Posted by Tom at 10/11/2005 6:34:00 PM
Hi,
I am always confused about what to use as the key for a table.
Let's say I have a company-employee table.
[company]---*[employee]
My co-worker likes to use an AutoNumber or Counter as the key for the
[employee] table (and everything).
I personally use an actual key set for the [e... more >>
Changing the 6th character of a string?
Posted by scholzie at 10/11/2005 2:49:37 PM
In a column I have some values for part names. The 6th character tells
you where the part came from, and this is the same scheme for every
single part in the database.
If I want to do something like return the basic name of a given part,
without the factory identifier character, I need to repl... more >>
Bulk Insert Data in Millions - Lock Issue
Posted by adi at 10/11/2005 1:50:50 PM
Hi all,
Hope there is a quick fix for this:
I am inserting data from one table to another on the same DB. The
insert is pretty simple as in:
insert into datatable(field1, field2, field3)
select a1, a2, a3 from temptable...
This inserts about 4 millions rows in one go. And since... more >>
Any way to optimise this query?
Posted by Driesen via SQLMonster.com at 10/11/2005 12:00:00 AM
Hi guys
Is there any way I can run this query faster? Should I take out the ORDER BY
clause? This is supposed to return 17,000 rows and takes around 30 minutes or
so. Is there no way at all to get this result faster?
select r.AttorneyName, r.sitename, r.applicationid, r.clientsurname, r.
cl... more >>
embedded control characters
Posted by rcamarda at 10/10/2005 1:22:56 PM
Beyond my control: I am finding control characters (likely tab) is
making its way into address fields of our operational system. This is
messing me up when I load the data into our warehouse w/ BCP (fields
get shifted).
Is the a nifty way to strip control characters from data?
TIA
Rob
... more >>
Errors with SP4 upgrade... Please Help
Posted by Dave at 10/10/2005 11:37:46 AM
I am having problems accessing DTS after install SP4 and was wondering
if someone could offer some advice.
I installed SP4 and got the following error after it competed.
Unable to write to response file 'U:\WINDOWS\setup.iss' during
recording. Please ensure enough space is available on targ... more >>
...Contains more than the maximum number of prefixes. The maximum is 3.
Posted by teddysnips NO[at]SPAM hotmail.com at 10/10/2005 7:23:47 AM
SQL Server 2000 8.00.760 (SP3)
I've been working on a test system and the following UDF worked fine.
It runs in the "current" database, and references another database on
the same server called 127-SuperQuote.
CREATE FUNCTION fnGetFormattedAddress(@WorkID int)
RETURNS varchar(130)
AS
... more >>
Template function
Posted by catch NO[at]SPAM olifilth.co.uk at 10/10/2005 7:06:39 AM
Hi,
Suppose I have a table something like:
name (VARCHAR(64)) age (INT) quotation (TEXT)
=================================================
Donald Trump 50 I am rich
Bugs Bunny 26 What's up doc
...
and a template string something like:
SET... more >>
Sql Server backup vs HP Data Protector (HPDP) -- Do *not* use SQL Server?
Posted by Le at 10/10/2005 6:46:19 AM
Our HP representatives are telling us that backing/restoring our MS SQL
Servers with "HP Data Protector (HPDP)" is better and safer than using
MS Sql's backup/restore process.
I have strong hesitations, because MS Sql's processes gives us a great
deal of flexability.
Has anyone have any e... more >>
LIKE and IN can I combine
Posted by rcamarda at 10/10/2005 5:59:51 AM
I can use the IN with the WHERE clause as example:
SELECT * FROM NORTHWIND WHERE LASTNAME IN ('FULLER','KING')
I want to use the IN and LIKE at the same time:
SELECT * FROM NORTHWIND WHERE LASTNAME LIKE ('A%','B%')
I know this is a simplistic example, but the members for the IN will be
ma... more >>
selecting only the last record in joined table
Posted by Lucius at 10/10/2005 12:25:26 AM
Hello everyone, I have a query problem.
I'll put it like this. There is a 'publishers' table, and there is a
'titles' table. Publishers publish titles (of course). Now I want to make a
query (in MS SQL Server) that would return the last title published by every
of the publishers. Quite clear s... more >>
One-One Relationship
Posted by Tom at 10/10/2005 12:00:00 AM
Hi,
Do you guys know what's wrong with a one-to-one relationship?
The reason I want to make it like this is that at the very end of the chain,
the set of keys is huge. I want to limit the number of columns to be the
key. i.e. the [company] table has 1 column as the key. The [employee]
... more >>
database in simple mode yet txn log file can be out of diskspace ?
Posted by maxzsim via SQLMonster.com at 10/10/2005 12:00:00 AM
Hi ,
I have set up my database to be using "Simple" mode. This will not log any
txns ?
I have got the err message saying the log file is full and i need to do a
txn log backup
i do not understand why , could anyone kindly advise ?
tks & rdgs
--
Message posted via SQLMonster.c... more >>
|