all groups > sql server (alternate) > august 2003 > threads for august 8 - 14, 2003
Filter by week: 1 2 3 4 5
Quick question: Exporting data
Posted by Wing at 8/14/2003 11:42:24 PM
Hi,
What data format can MS SQL Server 2000 export??
Wing
... more >>
Altering column fields with a Stored Procedure
Posted by mwoodward NO[at]SPAM quinnpumps.com at 8/14/2003 10:12:16 PM
I have some columns of data in SQL server that are of NVARCHAR(420)
format but they are dates. The dates are in DD/MM/YY format. I want to
be able to convert them to our accounting system format which is
YYYYMMDD. I know the format is strange but it will make things easier
in the long run if all... more >>
How do you lock table (or view) fields from editing???
Posted by Richard Holliingsworth at 8/14/2003 9:16:43 PM
Hello:
I have an Access 2K form I built from a SQL Server 7.0 view. I want to
lock certain fields in the database from users so they can see them on
the views and forms, but NOT be able to edit them.
I've looked in BOL, MS SQL Server web page and SQL Server 7.0 books and
could not find... more >>
How would you execute sp_changeobjectowner stored procedure using sqldmo object
Posted by salil bhole at 8/14/2003 6:12:52 PM
How do you use sqldmo object to execute system stored procedures? Any
suggestions would be appreciated.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
Writing to a text file from a database query.
Posted by Stefan at 8/14/2003 4:42:12 PM
I need to just back one table and not all the data in the table. Is there a
way to have SQL save the data return from a query to some text file that I
can then use to build the table in another table on another server?
I am SQL server 7
Thanks,
S
... more >>
script to combine multiple rows into a single row
Posted by lie_valerie NO[at]SPAM yahoo.com at 8/14/2003 4:05:11 PM
Hi everyone,
I really appreciate if anyone could help me with this tricky problem
that I'm having. I'm looking for a sample script to combine data in
multiple rows into one row. I'm using sqlserver. This is how data is
stored in the table.
ID Color
111 Blue
111 Yellow
111 ... more >>
Index name conflict
Posted by teddy_theo NO[at]SPAM yahoo.com at 8/14/2003 2:18:02 PM
i have a dts package that is going to run at night and pull data from
2 tables in an Oracle db and load it to 2 staging tables that my
package creates in sql server 2000. i then execute a few sprocs to
and columns, indexes, etc. after that all happens successfully i want
to delete the two prod... more >>
What is the xx_log.LDF file do?
Posted by Stefan at 8/14/2003 11:42:01 AM
Hi,
What is the Log.LDF file used for? Can it be deleted?
Thanks,
Stef
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
RIGHT OUTER JOIN?
Posted by Guinness Mann at 8/14/2003 10:09:52 AM
In my (admittedly brief) sojurn as an SQL programmer I've often admired
"outer joins" in textbooks but never really understood their use. I've
finally come across a problem that I think is served by an outer join.
-- This table stores the answer to each test question
CREATE TABLE TestResult... more >>
computer name
Posted by vncntj NO[at]SPAM hotmail.com at 8/14/2003 6:46:11 AM
If I change the name of my computer/server will it change the name of
my sql instance?... more >>
single user mode..
Posted by vncntj NO[at]SPAM hotmail.com at 8/14/2003 6:43:52 AM
If I start the server in single user mode does it reset the sort order?... more >>
A stored proc to search all Procs, Views, Triggers and functions
Posted by fardadk NO[at]SPAM bes.ci.portland.or.us at 8/13/2003 4:36:44 PM
I developed a search stored proc that searches all or
some of Procs, Views, Triggers and functions. Would anyone be interested
to see it posted here?
Do you have any suggestions about other places, websites forums ...., to
share something I have developed?
Thanks you for your response in ... more >>
Using a "dynamic top" statement with a cursor
Posted by Flapper at 8/13/2003 3:30:49 PM
Help please,
Have a situation when converting from Oracle SP's to SQL SP's. The old
oracle cursor was roughly as follows
CURSOR cur_rsStock IS
select
*
from
(select StockRowId, CategoryId
from
STOCKDISPOSABLE
where
STOCKDEFID=numDefId
ORDER BY
STOCKROW... more >>
How do you log on as SA????
Posted by Richard Holliingsworth at 8/13/2003 2:26:23 PM
Hello:
I'm a FoxPro developer setting up my first SQL Server (7.0) app. and I
need to ask how to log on as SA? I guest this sounds stupid, but when I
created the logons for the group, I set them up as "Windows
Authentication" and now the logon happens automatically when I start
Enterprise ... more >>
How can I find out who is running dangerous queries
Posted by milesfeinberg NO[at]SPAM hotmail.com at 8/13/2003 1:55:59 PM
I recently discovered that some one (or application) updated all the
rows in the database. Looks like a query was missing a where clause.
It was probably one of the applications, but reviews of the code show
that a where clauses is always used, or so it appears. Anyway, I set
up a trigger to ... more >>
Stored Procedure into a Cursor
Posted by humberto.zamarron NO[at]SPAM tycoelectronics.com at 8/13/2003 9:09:48 AM
Hi guys!!
I am trying to fill a cursor with the results of a Stored
Procedured, but SQL give me an syntax error message , does any one can
give me some help
I am using SQL Server, this is the first lines of my code
DECLARE FRates_Cursor CURSOR FOR
exec GET_FJRs_Eng 'all'
OPEN FRat... more >>
Urjent solution needed !!!
Posted by raghuraman_ace NO[at]SPAM rediffmail.com at 8/13/2003 7:27:20 AM
HAI ,
I 'VE BEEN IN SQL SERVER 7.0 WITH WINDOWS NT. FROM MY NODE I WENT TO
ENTERPRISE MANAGER AND I WENT TO SQL-SERVER'S PROPERTY BY
RIGHTCLICKING the registered server. I CHANGED THE MAX.. CONCURRENT
CONNECTIONS TO 1 FROM THE DEFAULT (0).'
It gave the warning msg. like " this settings may ... more >>
MSDE 2000 Administration tool
Posted by Lorenzo Bolognini at 8/12/2003 9:52:21 PM
Hi all,
I have installed MSDE on my computer but it's missing, as all you already
know, a serious (well, osql IS TOO serious but not very newbie friendly)
admin tool.
I have downloaded http://www.asql.biz/DbaMgr.shtm and i'm quite happy with
it but was wondering if there's something better ... more >>
use ADO/html in SQL 2000
Posted by blackpack3000 NO[at]SPAM yahoo.com at 8/12/2003 7:21:30 PM
Hi!
I want to write a function or stored procedure such that it will use
ADO2.6 or better so I can use the XMLhttpServer.
When this function is invoked it will execute a URL and gather the
html code and store it in the Db.
So one thought would be how can I write a Stored Proc or function ... more >>
problem with stored procedure and tablename parameter
Posted by N E at 8/12/2003 4:26:00 PM
hello
I am trying to do a procedure that :
1 - Take a table name, a field name and a value as parameter
2 - check if the fieldname=value in the tablename table
3 - returns 1 if so, 0 if not
A -
I tried :
drop procedure checkmytable
GO
create procedure checkmytable
@p_table nvarcha... more >>
help me! read text file in sql
Posted by Robert K at 8/12/2003 3:15:34 PM
HELLO,
please help me, how to read txt file and then insert it to sql table.
i have file like this name.txe
<...
012301231923123902132003
23423i4u23490342342342343
....>
I have 4 column and want to fractionise this text '012301231923123902132003'
and put in to table.
Best reg... more >>
newbie sql query question
Posted by hymort NO[at]SPAM hotmail.com at 8/12/2003 2:30:15 PM
Hi,
I have a simple SQL/Database question:
If I have a table like this - {name, address} where name and address
are the primary keys. What is the most efficient way to get a single
row of addresses delimited by commas if I define the name in the WHERE
clause?
Thanks for your help... more >>
Complex SQL JOIN - check this out...
Posted by artwookie NO[at]SPAM yahoo.com at 8/12/2003 2:08:19 PM
I'm requesting help for an account report. The desired result is
a report that displays the total(money) for cost center's accounts
based on account access of the user.
Tables:
FY_Orders - stores the orders for items purchasing. Column "fin" is
the owner ID.
CostCenters - Group of Accounts
... more >>
Norton Internet Security & SQL Server
Posted by Mike Stogden at 8/12/2003 2:04:49 PM
Hi,
Just installed Norton Internet Security on an XP workstation that also has
SQL Server on it.
I now find that I cannot access SQL Server and multiple messages are being
issued by NIS.
When I switch off the Firewall & Intrusion Detection I can access SQL
Server.
Does anyone know how... more >>
How do I copy data from similar tables knowing unique ID fields
Posted by spotvader NO[at]SPAM yahoo.com at 8/12/2003 1:57:18 PM
I have two tables in my database called CartItems and OrderItems. I
store all of a session's shopping cart items in the CartItems table
using the sessionID as the identifier (called cartID in my DB). After
an order is placed and is approved, I would like to copy all of the
items in the CartItem... more >>
sorting Conundrum
Posted by Fraggle_Rock_1 NO[at]SPAM yahoo.com at 8/12/2003 9:21:29 AM
I have a table that has this as data
aa, Aa and AA
I would like to be able to sort on this row so I get
aa
aa
Aa
Aa
AA
AA
or the reverse, how do i go about this?
SELECT [Arow]
FROM [aTable]
ORDER BY [Arow]
I get them returned in the order they were entered into... more >>
How to Concatenate Strings That Have Trailing Spaces?
Posted by jaykchan NO[at]SPAM hotmail.com at 8/12/2003 7:46:50 AM
I am trying to export data from a SQLServer database into a text file
using a stored procedure. I want to be able to read it and debug it
easily; therefore, I want all the columns to indent nicely. This means
I need to append trailing spaces to a text string (such as "Test1 ")
or append leading... more >>
Fastest way of updating a row
Posted by akj NO[at]SPAM tmnet.dk at 8/12/2003 3:14:42 AM
In relation to my last post, I have a question for the SQL-gurus.
I need to update 70k records, and mark all those updated in a special
column for further processing by another system.
So, if the record was
Key1, foo, foo, ""
it needs to become
Key1, fap, fap, "U"
iff and only iff... more >>
Tough Problem, need help
Posted by cr33d09 NO[at]SPAM hotmail.com at 8/11/2003 3:11:41 PM
I have a very strange database with a very strange problem.
Consider 4 tables:
Table1:
----------------
Table1ID INT PK
Table2ID INT FK
Table3ID INT FK
OrderNo VARCHAR(50)
Table2
----------------
Table2ID INT PK
Table4ID INT FK
Table3
----------------
Table3ID INT PK
Table2ID... more >>
Question about getting the latest identity field in a specific table
Posted by cs_benny NO[at]SPAM hotmail.com at 8/11/2003 3:57:08 AM
Dear All,
Suppose in the program a record is added to a table whose
primary key is a identity field. If I really want to get the lastest
value for that field after the insertion, is it the best way to use
IDENT_CURRENT() to obtain this value?
Thanks for your kind attention
... more >>
rollback segment?
Posted by susana73 NO[at]SPAM hotmail.com at 8/11/2003 12:50:14 AM
Hi,
I am an Oracle developer and new to SqlServer. Is there rollback
segment in SqlServer? If there is, does it use only for the purpose
of rollback or to maintain read consistency as well?
If there is no rbs in SqlServer. How does it handle rollback and read
consistency?
Thanks!
Sus... more >>
a resourse good for problems replication in sql server 2000
Posted by mor_hamz NO[at]SPAM yahoo.com at 8/11/2003 12:24:57 AM
i want a good resourse for to learn replication in sql 2000 inoder to
practical learn and implemetion replicat... more >>
convert a btrieve file to a sql server file
Posted by mor_hamz NO[at]SPAM yahoo.com at 8/11/2003 12:19:48 AM
how can i convert a file from kind btrieve to a sql server 2000 file and used
that files in sql server 2000
thank you from your answer... more >>
Log
Posted by Pak Tse at 8/10/2003 9:46:16 PM
How do I configure the SQL Server 2000 to keep a log of all attempts to log
in regardless success or failure ?
... more >>
Executing Multi-lines SQL Scripts From Command-line
Posted by ehchn1 NO[at]SPAM hotmail.com at 8/10/2003 3:22:35 AM
Hello,
I'm trying to execute a file containing few SQL statements.
CREATE VIEW test1 AS SELECT * FROM table1;
CREATE VIEW test2 AS SELECT * FROM table2;
The standard SQL way is to end a statement with semi-colon.
But doing that,it doesn't work in SQL Server.
After changing ";" to "GO", i... more >>
How can i take backup of logfile of one specific database?
Posted by sohelcsc NO[at]SPAM yahoo.com at 8/10/2003 2:52:13 AM
Hi,
I want to take backup of database logfile periodically and
automatically. What should i do then.....
Thanks
Hoque... more >>
Generating various statistics from data in MSSQL7
Posted by starwiz NO[at]SPAM innovate-inc.com at 8/9/2003 8:03:16 PM
Sorry about the huge post, but I think this is the amount of
information necessary for someone to help me with a good answer.
I'm writing a statistical analysis program in ASP.net and MSSQL7 that
analyzes data that I've collected from my business's webpage and the
hits it's collecting from the... more >>
Weigh resultset
Posted by qwert12345 NO[at]SPAM boxfrog.com at 8/8/2003 11:47:28 AM
Hi,
This is what I want to do. For a data acquisition query, if condition
A is met, set weight to 1, else if condition B is met, set weight to 2
etc.
Is this possible? I thought about using CASE function but to no
avail.
Using the classical Northwind db as target db, and its employees ta... more >>
Need help with collations
Posted by Steve Thorpe at 8/8/2003 11:04:05 AM
I want to create a database where the table names / column names / SP names
are NOTcase sensitive but where the data in the tables is, so that I can
build a unique index where 'test' and TEST' is accepted as different.
I have tried Installing SQL with a Collation designator with the Case
Sens... more >>
Update problem
Posted by Jon Cosby at 8/8/2003 7:27:00 AM
In this update, "courses" has the course number for each course and the
number of corresponding credits; "courseenrollment" has the course number
and id for students enrolled in that course; "students" has the student id
and total credits for each student.
UPDATE students SET credits = (SELEC... more >>
Identity Seed
Posted by William Ortenberg at 8/8/2003 4:51:39 AM
Can I change the value of a column's identity seed programmatically? If
so, how?
Thanks in advance.
... more >>
Foreign key relationship
Posted by timmy_dale12 NO[at]SPAM hotmail.com at 8/8/2003 2:31:15 AM
Hi
Im a sql newbie , and have created two tables with a foreign key
relationship.
How do i insert into these tables. If i insert into the primary table
will the foreign key field in the second table be automaticly updated
by ms sql server ?... more >>
|