all groups > sql server (alternate) > february 2004
Filter by week: 1 2 3 4
System Schema & Documentation
Posted by ckdinternet NO[at]SPAM yahoo.com at 2/29/2004 7:41:23 PM
Anyone know how to query sysobjects & syproperties showing the table,
field name, and field properties (specifically the description)? I
have so far:
SELECT *
FROM sysproperties sp
INNER JOIN sysobjects so
ON sp.id = so.id
SELECT *
FROM syscolumns sc
INNER JOIN sysobjects so
ON sc.id =... more >>
REPLIKACJA SQL2000 BEZ DOMEN
Posted by tomaladm NO[at]SPAM wp.pl at 2/29/2004 3:12:18 PM
Witam!
Czy jest mozliwosc przeprowadzenia replikacji w SQL2000, bez uzywnia
DOMEN z AD na Win2000/2003 Server??
Niby konfiguracja dystrybutora, wydawcy i subskrybenta przechodzi na
LOCAL SYSTEM ACCOUNT mimo "local sql server agent is using the local
system account, which causes replication betw... more >>
DB Questions
Posted by akchandru NO[at]SPAM hotmail.com at 2/29/2004 9:44:16 AM
1. If the TempDB Database is deleted from MS-SQL Server what will
happen..?
2. How to insert a not null column in an existing table with
records..?
3. If a table is deleted, what will happen for the Stored procedures
and Views, which that table reffered..?... more >>
CountrySelector control
Posted by versteijn NO[at]SPAM 538mail.nl at 2/29/2004 9:36:21 AM
Hello all
I am developing a CountrySelector control (which I would like to share
with anyone), but I am quite a newby in this custom control area.
You can find it at:
http://home.kabelfoon.nl/~juliusd/vbnet/CountrySelector.vb
Some questions I have are:
- In what event should the items be... more >>
Problem selecting count, comparing 2 fields in same table
Posted by chrisvaf NO[at]SPAM yahoo.com at 2/29/2004 9:17:35 AM
I have the following table structure.
group1 group2 group1_result group2_result
'One' 'Two' 3 2
'One' 'Two' 3 1
'One' 'Two' 2 5
'One' 'Two' 4 1
'One' 'Two' 0 5
I need to sum up the number of times 'One... more >>
Make two query in too one
Posted by sales NO[at]SPAM a-o.biz at 2/29/2004 8:20:14 AM
I have two SQL query that I would like to make in to one, if possible
Here is the first one: (Query4)
SELECT rooms.DESCRIPTIO, rooms.ID, bookings1.DATE
FROM bookings1 INNER JOIN rooms ON bookings1.ROOMID = rooms.ID
WHERE (((bookings1.DATE) Between #4/3/2004# And #4/9/2004#));
And the secon... more >>
Reference SQL Parser
Posted by mCompany at 2/29/2004 7:58:17 AM
I need to parse SQL statements directly and extract each segment
individually. Is there a way reference the Microsoft SQL Parser
directly from VB.Net?
Thanks!
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Restore databases into a new installation of SQL Server
Posted by seapearl1023 NO[at]SPAM ms65.url.com.tw at 2/28/2004 3:17:35 PM
Hi,
I want to restore my databases from the old SQL Server installation
into a new installation of SQL Server. My new installation of SQL
Server has different data path from the old installation. In addition,
the data owners of some databases in the old SQL Server installation
are not dbo. I ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to write a function that will return true if user is in a certain role?
Posted by tdauria NO[at]SPAM bu.edu at 2/28/2004 12:58:54 PM
I have a SQL database with an Access front end. In the database I
have a read only and a read write role. When a read only user opens
the database I want all the fields on the form to be locked so that
the user will not try to change data and get an error from the server.
Right now I am doin... more >>
create an incremental counter in the stored procedure
Posted by Anna Schmidt at 2/28/2004 12:33:27 PM
Hello, I have a following SP
I want to add an extra field "ranking" that just increments the row number.
Another feature would be: if several users have an equal totalvalue, they
should have an equal ranking number. the rankings following users would have
to be adjusted as well. thanks
SET QU... more >>
Holidays in SQL Server
Posted by Nils Magnus Englund at 2/28/2004 2:55:58 AM
Hi!
I have a large table in SQL Server 2000 with a datetime-column 'dt'. I want
to select all rows from that table, excluding days which fall on holidays or
weekends. What is the best way to accomplish this? I considered creating a
new table called "holidays" and then selecting all rows (sort ... more >>
Calling an Oracle Procedure via a DTS
Posted by Jason Leiser at 2/27/2004 7:58:23 PM
Is there a way to call an Oracle Procedure using the MS OLD DB Provider
for Oracle object in a SQL Server 2000 DTS package? If it can't be done
this way, is there another way to retrieve data from an Oracle database
using an Oracle procedure to a SQL Server table? Also, can parameters
be passe... more >>
Set operations (EXCEPT/EXCEPT ALL)
Posted by erwin NO[at]SPAM theleonardi.com at 2/27/2004 7:02:29 PM
Hi all,
I just start using SQL Server for my project. I have some questions
related to set operations. Suppose I have two tables, Table A and
Table B, as following.
TableA TableB
======= =======
--------------- ---------------
| ID | DATA ... more >>
linked tables
Posted by sifre78 NO[at]SPAM yahoo.com at 2/27/2004 4:56:18 PM
I have access tables which are linked to SQL database by ODBC
connection. By using Access, i can easily see my table contents. but
when i am using ASP, i con not. I am getting this error message
Microsoft JET Database Engine (0x80004005)
ODBC--connection to 'SQL ServerMYDATABASE' failed.
wi... more >>
Creating a Table
Posted by vartegrich NO[at]SPAM aol.com at 2/27/2004 1:38:32 PM
How do you create a new table from a SELECT statement of another table
using MS SQL Server. This is part of a distributed database topic for
university. Unfortunately I can only seem to get the new table created
in Oracle and not MS.... more >>
auto recompile in sql server
Posted by chen1999 NO[at]SPAM hotmail.com at 2/27/2004 1:09:29 PM
Hi,
I have a question in SQL Server 2K, I use SQL Profile to trace, and
find Stored Procedure was auto recompiled, like this row in the
trace:
SP:Recompile 15 1680 76 2004-02-27 16:01:11.610
How can I stop the auto recompile.
Thanks
Harold... more >>
stored procedure to create new database
Posted by cakewalkr7 NO[at]SPAM hotmail.com at 2/27/2004 10:16:03 AM
Is there a stored procedure installed by sql server 2000 that I can
call and just pass in the name of a new database and have it create
the database for me? If not, how do I do it in sql? Thanks.... more >>
TempDB tran log growing slowly - yet we are in simple mode!
Posted by trhorner NO[at]SPAM att.net at 2/27/2004 5:34:58 AM
Something strange is happening to our SQL Server DB (2000). The
tempdb transaction log file continues to grow (quite slowly) for no
apparent reason. We have it in simple mode, and I have tried a manual
checkpoint command and manual shrink (of the log file only). There
are no unusual SQL's (la... more >>
SQL Agent question
Posted by Wangkhar NO[at]SPAM yahoo.com at 2/27/2004 3:34:12 AM
Dumb question perhaps, but hey.
SQL Agent on sql2k, client sp3a, server vanilla.
In EM Agent Icon Status does'nt show. Server running status doesnt
show till explicitly connected.
Agent has both start and stop menu options enabled, and no green
arrow/red square (Green Arrow, Red Square ... ... more >>
cluster sql server 2000
Posted by ragaza NO[at]SPAM ozu.es at 2/27/2004 1:30:46 AM
Hi,
I need manuals, tecnical papres, instalation guide, etc about
how to install one cluster sql server 2000 64 bits with
windows server 2003.
It`s posible a need one document step by step about this
Thanks,
RaulGZ.... more >>
MSDE & SQL 2000
Posted by CruznOz at 2/26/2004 7:48:25 PM
I have a client that has a server running Windows 2000 Server. another
company has installed MSDE (version unknown) on this server. I need to
install SQL 2000 on the same server. Will the two coexist peacefully?
Tia
CruznOz
*** Sent via Developersdex http://www.developersdex.com ***
... more >>
Is installation secure ?
Posted by kona_iron NO[at]SPAM yahoo.fr at 2/26/2004 6:21:56 PM
We can find a lot of recommandations about how to secure a SQL*Server configuration.
Does anyone have scripts to do it ?
Any advices or links are welcome... more >>
Haversine SQL trouble - Distance between zip codes
Posted by christian NO[at]SPAM adminconsole.com at 2/26/2004 6:03:11 PM
I am trying to use the haversine function to find the distance between
two points on a sphere, specifically two zip codes in my database. I'm
neither horribly familiar with SQL syntax nor math equations :), so I
was hoping I could get some help. Below is what I'm using and it is,
as best as I ca... more >>
setting the query time out....
Posted by casianspice NO[at]SPAM yahoo.com at 2/26/2004 5:49:34 PM
i am using sqlserver 2000, and i was wondering how do i go about
setting the query time out. is there a way to configure the query
timeout for a specific user id?... more >>
How to fix SQL Server 2000 after machine name & domain change ?
Posted by Arifi Koseoglu at 2/26/2004 5:23:31 PM
Hello everybody..
Is there a way to fix the SQL Server 2000 installation when the Server after
the server has been disjoined form its old domain and added to a new domain
with a different computer name too?
Sounds like a joke, but stuff happens.
TIA
-arifi
... more >>
Two tables and count
Posted by Andrew Banks at 2/26/2004 5:22:50 PM
I have two tables in my DB for an e-commerce app. This allows for 1 order to
have multiple products. I want to select the OrderID from the Orders table
but only when all the corresponding records in the OrderDetails table all
have their Despatched value = 0. Can anyone offer any help please?
Sim... more >>
Deleting records in the logfile
Posted by Derrick King at 2/26/2004 4:36:30 PM
I have a database that is used to store a lot of data. We load the data on a
daily basis, several thousand records per day. The Log file is not needed,
so whats the best way to delete the records in it and reduce the size
Thanks
Derrick
... more >>
Getting Database Stats
Posted by Derrick King at 2/26/2004 4:31:59 PM
COuld someone tell me if its possible to get hold of stats about all
Databases on a SQL Server.
The sort of things I would like are
Name of DB
Location of DB
Size of DB
Location of Logfile
Size of DB
Owner
Users Authorised to access the DB
Is there somethi... more >>
Data disappear - SQL server 2000 / ASP interface
Posted by haebin NO[at]SPAM andrew.cmu.edu at 2/26/2004 2:33:05 PM
Hello,
What could possibly cause data in the SQL server database to be
removed, except being deleted manually? We had a couple of situations
where data in certain records disappeared although the records were
still there. The data is entered and editted through the web interface
in ASP. The w... more >>
Array in Store procedure
Posted by robert.song NO[at]SPAM mda-software.com at 2/26/2004 1:32:57 PM
Dear all,
Sometimes I happened the require that the number of input parameters
of SP is not fixed, Can sql T-SQL handle the array (dynamic array)?
Does anybody ever used an array name as the input parameter to call
the SP?
thanks,
Robert... more >>
Access File/Get Data can't attach to a SQL table.
Posted by bcanavan NO[at]SPAM bmghomes.com at 2/26/2004 12:18:34 PM
In Access 97, I am trying to attach to a table in my SQL Server 2000
db.
I use File/Get Data, which displays all the SQL tables including the
one I can't attach to. (I can attach to all the other SQL tables.)
But, when I select that table I get a message that tells me the name
is invalid. ... more >>
SELECT problem...
Posted by Ian T at 2/26/2004 12:17:48 PM
Hi,
I've got what I think (probably incorrectly) should be a simple SELECT :
Two colums with data like
col1 col2
1 50
1 51
2 50
2 51
3 50
3 54
I'm trying to bring back items in col1 that have values of both 50 and 51
( and potentially m... more >>
search the primary key given the table name
Posted by robert.song NO[at]SPAM mda-software.com at 2/26/2004 12:15:32 PM
Hi all,
How can get the primary key string from the given table name? i know
it should from system tables of "sysobjects, syscolumns, and
sysconstraints", but when i execute the statement like that:
select a.name from syscolumns a,sysobjects b,sysconstraints c
where a.id = b.id and b.name ... more >>
Converting Rows into Columns MS SQL 2K
Posted by daniel.white NO[at]SPAM perceptivetech.com at 2/26/2004 8:08:10 AM
I have a SP that returns the information I want but it returns it in 2
separate queries.
Example:
Query 1
Name, Number, Class
Row 1- Mike Phillips, 154AA, AA
and
Query 2
Time, Manual
Row 1 -12:45:22,0
Row 2 -13:04:56,0
What I want it to look like is:
Name, N... more >>
Combining data from differnet Excel sheets
Posted by levyi NO[at]SPAM walla.co.il at 2/26/2004 7:20:11 AM
Hi all
I need to add data from two Excel sheets (both on the same workbook)
to an existing table in my SQL DB.
The problem is that each sheet holds different fields for the same
record, though the records are sorted by row numbers.
(I had to split the fields to different sheets because Excel ha... more >>
MS SQL Server XML Query Help
Posted by xml_ NO[at]SPAM hotmail.com at 2/26/2004 6:51:08 AM
Hi all--
I am trying to execute the following query in MS SQL Server 2000.
SELECT 1 AS Tag, NULL as parent,
'x' AS [A!1!B],
NULL AS [C!48],
NULL AS [RepurchaseDetails!49]
UNION ALL
SELECT 48, 1,
NULL, 'y', NULL
UNION ALL
SELECT 49, 48,
NULL, NULL, 'z'
... more >>
Tables in Linked Server
Posted by aaronss NO[at]SPAM the-mdu.com at 2/26/2004 4:03:13 AM
Hi
I received the below error when trying to run an update from one SQL
Server to another.
I can insert and select. I cannot delete or update. The permissions
have been changed to allow the linked server user to carry out
everything, the linked servers are working but we cannot change the
... more >>
Question : How SQL chooses an index for a process
Posted by Anita at 2/26/2004 3:38:22 AM
I have just tested 3 queries using QA. The complete
test information :
------
CREATE TABLE agls1
( fyear char(4) NULL ,
fprefix char(3) NULL ,
fvcno char(20) NULL ,
fdate datetime NULL ,
fid char(15) NULL ,
fiddate datetime NULL ,
fdesc char(60) NULL ,
facc char(12) NUL... more >>
Group dates by month
Posted by wantjoule NO[at]SPAM ncl.com at 2/26/2004 2:43:42 AM
I have a table that i want to query and group the records by the
month, what SQL stanment would i use?
Somthing like this? apart from i know that the "Group BY (MM/YYYY)"
wont work !:)
Select Date,Name
FROM Table
Group by (MM/YYYY)
Does this make sense?
Willa... more >>
Correlated Subquery Efficiency
Posted by hardaway NO[at]SPAM primus.com.au at 2/25/2004 6:05:52 PM
Hello All,
I have a SQL Query with multiple correlated Subqueries in it. When it
gets executed it runs rather slow due to the size of the QT table.
Does anybody have any suggestions how to alter this query to make it
run faster, or any index suggestions to assist it with.
Query is as follow... more >>
recursive call in stored proc
Posted by robert.song NO[at]SPAM mda-software.com at 2/25/2004 2:52:37 PM
Hi all
I am implementing a stored procedure which needs to recursively call
itself until specific condition is reached, Could anyone give some
advice about that?
Thanks a lot
Robert Song... more >>
Alter Column Type.
Posted by lhovhannessian NO[at]SPAM hotmail.com at 2/25/2004 9:55:37 AM
Hello,
Easy one for the SQL experts.
I have a simple table. For the example let's say it looks like this:
CREATE TABLE doc_exb ( column_a INT, column_b VARCHAR(20) NULL)
Now I want to alter this table and make the column column_a a float
instead of an INT.
How do I do that? I cannot DR... more >>
back everything up in a single file?
Posted by Bing Du at 2/25/2004 8:50:22 AM
Greetings,
Our former SQL Server 2000 DBA backed up everything in a single disk
file. By everything I mean, full backup, differential backup and
transaction logs. See below for details of how the backup is currently
set up. When I did 'view contents' of DBBackup, I saw it contained the
... more >>
sp_spaceused reports over 40 GB unused for a table
Posted by spilich NO[at]SPAM qvc.com at 2/25/2004 8:27:19 AM
I have a large table that I recently purged a year of data from.
However, the table size in sp_spaceused hasn't decreased as much as I
would expect. (there are no text or large object columns on this
table, BTW) Running sp_spaceused on the table shows the following.
rows ... more >>
Extra parameters being added onto SP call with ADO?
Posted by dzahn NO[at]SPAM execpc.com at 2/25/2004 6:44:00 AM
We are running into problems on our development environment with extra
parameters being added on to a stored procedure call. Instead of the
expected stored procedure call, the trace shows something like this:
declare @P1 int
set @P1=NULL
<<expected stored procedure call>> , @P1 output, <<rep... more >>
LAN SQL set up question
Posted by knvsol NO[at]SPAM comcast.net at 2/25/2004 4:36:10 AM
I am trying to set up a production and test machine on a LAN. The LAN
is behind a firewall.
Machine 1: Production machine. with SQL server (Server name Prod)
Machine 2: Test machine. With SQL server (server name Test)
trying to register Prod sql server in Test Sql server via Ent Manager.
ke... more >>
Cristal Reports for OLAP CUBE
Posted by aprpradeep NO[at]SPAM hotmail.com at 2/25/2004 12:14:13 AM
I have created a crystal report connecting an OLAP cube .But once i
try to view a report it took around 15 minutes and finaly gave an
error like "cannot retrieve data from cube".I want to know why it is
and how can i create a crystal report for OLAP CUB.... more >>
aba_lockinfo - new version available
Posted by Erland Sommarskog at 2/24/2004 11:12:16 PM
If you are using my lock-monitoring procedure aba_lockinfo, there is now a
new version available at http://www.sommarskog.se/sqlutil/aba_lockinfo.html.
I recommend that you replace your existing version with this one.
Functionally, there are only minor difference, but the older version did
no... more >>
using contains clause
Posted by Rob Wahmann at 2/24/2004 6:57:40 PM
Hello - I'm using the following syntax:
WHERE pages.ParentID=0 AND CONTAINS(pages.regionID,'#request.thisRegion#')
....and I get the folowing error:
[SQLServer JDBC Driver][SQLServer]Execution of a full-text operation failed.
A clause of the query contained only ignored words.
I'm tryin... more >>
wmi access to sql server
Posted by Bob & Martha Vera at 2/24/2004 6:09:43 PM
Hello,
Forgive a newbie's question ...
Can I access SQL Server and the databases and tables within using windows
script?
If so, could someone point me in the right direction?
Regards,
Bob
... more >>
|