all groups > sql server (alternate) > june 2006 > threads for june 1 - 7, 2006
Filter by week: 1 2 3 4 5
Format a datetime columns output?
Posted by CK at 6/7/2006 7:22:24 PM
Hi All,
Currently the query returns 2006-03-27 00:00:00, can I make it output
03/27/2006, I want to truncate the time, and replace the hyphens with
forward slashes. Any ideas?
Thanks In Advance,
~CK
... more >>
update
Posted by cemal at 6/7/2006 9:25:56 AM
Hi
I have this sql lines but somehow they are not working.
Now I am not sure if it is correct. Could you please read the line and
tell me if it is correct?
pid is primary key in the table
visited is a numeric field.
I am trying to increase one number everytime this page is viewed.
sqlup... more >>
Get results from VB SQLCRL Stored Procedure
Posted by Chris at 6/7/2006 7:07:51 AM
Hi,
I created a VB SQL CRL Stored procedure for calculating a value. Value
is returned as below
Using sConn4 As New SqlConnection("context connection=true")
sConn4.Open()
scmd = New SqlCommand("SELECT " & var_max, sConn4)
sdrd = scmd.ExecuteReader()
SqlContext.... more >>
Create project/stored procedure for SQLCRL
Posted by Chris at 6/7/2006 12:37:56 AM
I installed SQLServer 2005 Standard Edition and tried to created a
stored procedure in VB. From START/PROGRAMS/MICROSOFT VISUAL STUDIO
2005, I created a blank solution. What type of project shall I create
for creating a stored procedure in VB ?
I tried to install SQL Server again in case I lef... more >>
Tough SQL problem, need expert advice!!!
Posted by John at 6/6/2006 2:25:13 PM
All,
I think I am having a very tough problem, I need some expert advice
here.
Please bear with me since it will takes me a while to explain the
situation.
(Using SQL2005) I need to design the generic search utility on the
database server (run as Web Service), client supply the sear... more >>
Calling Stored Procedure from an ActiveX task
Posted by Karthik at 6/6/2006 1:31:16 PM
I'm attempting to call a storedprocedure from within an ActiveX task in
a DTS and am getting a "Command Text was not set for the command
object" error. I have no problem if I replace the stored procedure call
with the actual SQL.
Is it possible to directly call a SP via an ActiveX task? If yes... more >>
Challenge: Can you optimize this?
Posted by octangle at 6/6/2006 1:24:54 PM
This code is attempting to find records that have a RegJrnID that does
not occur more than one time in the table.
The reason that I want to find records with non-duplicated RegJrnID
values is to create "reversal" records for these such that the reversal
record has identical values for every co... more >>
Record size more than 8060B
Posted by RamaKrishna Narla at 6/6/2006 10:46:41 AM
Hi,
In MS SQL Server, while creating the table, I am getting a warning
message saying like "maximum row size can exceed allowed maximum size
of 8060 bytes".
Is there any way in SQL Server, to increase this allowed maximum row
size?
The setting like "set ANSI_WARNINGS OFF" is not suitable... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQLServer 2000 SP4 Enterprise Manager crashes immediately...
Posted by powersof2 at 6/6/2006 9:19:14 AM
Hello,
I need some help with SQL Server 2000 SP4. I've been using the
developer product for a few years now on my PC with very few problems.
Today when I try to start up Enterprise Manager, it crashes
immediately. I get the usual "Please tell Microsoft about this problem"
dialog and if I clic... more >>
SQL Union Problems When Trying to Retrieve Random Records
Posted by Jeremy at 6/6/2006 8:02:01 AM
I have a situation where i am trying to run two query's and retrieve
one record from each query, then using Union combine them into one
recordset. The First Query is strait forward and should just return
the matching record however the second query needs to find a random
record and return it. ... more >>
Line 1: Incorrect syntax near
Posted by Sandesh at 6/6/2006 4:59:49 AM
Hello All,
Me saying " has any body come across such error would be
underestimating".
Well I am getting a very peculiar and unique error "Line 1: Incorrect
syntax near 'Actions'."
Explaining you the scene is the following Stored Proc.
This stored proc is execute from a VB code in the .... more >>
Divide by zero error!!! Help!
Posted by zod91 NO[at]SPAM yahoo.com at 6/6/2006 3:29:12 AM
I don't understand why I get the error "Server: Msg 8134, Level 16,
State 1, Line 1
Divide by zero error encountered."
I check for 0, actually if I change the statement after ELSE to 2, it
will run with no issue and get 1 since the when statement is 0 in this
case. Please help.
SELECT
C... more >>
How to Insert date in sql server database
Posted by SSG at 6/6/2006 3:26:20 AM
How to insert date to the sql server database.
I am getting input from the HTML form and store it to database using
ASP.
how to store date field, what datatype needed and what conversion
needed.
Thanx & Regards,
SSG
... more >>
Parameterized SP in WHERE Clause of Another SP
Posted by jeremygetsmail NO[at]SPAM gmail.com at 6/6/2006 1:59:10 AM
I've got this SP:
CREATE PROCEDURE
EWF_spCustom_AddProfiles_CompanyYear
@prmSchoolYear char(11)
AS
SELECT
ContactID
FROM
dbo.EWF_tblCustom_CompanyProfile
WHERE
SchoolYear = @prmSchoolYear
I'd like to be able to reference that in the where clause of another
SP. Is that possible?
I... more >>
Question about returning a smalldatetime from a Function
Posted by SQL Server at 6/6/2006 1:50:03 AM
I've been working this for a while. Kind of new to SQL Server
functions and not seeing what I am doing wrong. I have this function
CREATE FUNCTION dbo.test (@Group varchar(50))
RETURNS smalldatetime AS
BEGIN
Declare @retVal varchar(10)
(SELECT @retVal= MIN([date]) FROM dbo.t_master_sche... more >>
Dummy Question
Posted by ajocius at 6/5/2006 8:17:07 PM
It seems every month when I'm diluged by lots of data I fall back on ole
reliable, Excel. But, I get over 50,000 rows of data to scrub. A colleague
of mine suggested I use a database. Seems simple so far, but having dabbled
in Access, it has always not so intuitive to understand. My questi... more >>
deadlock problem
Posted by shark at 6/3/2006 11:15:52 AM
Hi all. i am facing a deadlock problem .i have included the -t1204 and
-T3605 trace flags and have got the following o/p pu tin sqls server
logs.
2006-06-01 17:49:21.84 spid4
2006-06-01 17:49:21.84 spid4 Wait-for graph
2006-06-01 17:49:21.84 spid4
2006-06-01 17:49:21.84 spid4 ...
... more >>
Referential Integrity problem
Posted by Jeff North at 6/3/2006 4:29:46 AM
I'm using Microsoft SQL Server Management Studio Express 9.00.2047.00
and expriencing problems with setting referential integrity on a link
table. The tables' schema is as follows:
-------------------------------------------------------------------
CREATE TABLE competencies (
CID bigint id... more >>
Trigger to populate table or database
Posted by Jchick at 6/2/2006 4:08:28 PM
Im a newbie with a sql table in a MSDE database that contains fields of
CustName, BrokerName, Type, Status.
I am trying to write a trigger that does this:
1. When a new record in a table is added, I would like the selected
fields to be copied to another table (call it Master).
2. If that Ma... more >>
SQL_Latin1_General_CP1_CS_AS
Posted by Nasir at 6/2/2006 9:56:26 AM
When installing SQL server default is 'dictionary order
case-insensitve..1250..', however I chose dictionary order case-SENSITIVE
from the SQL collation. At the top window there are'Latin1_General' with the
option of case-sensitive, where you also see BINARY etc...
Is there any difference b... more >>
register hasn't been updated
Posted by AKS at 6/2/2006 7:40:44 AM
hi,
i have a programmer problem. When i exec a update sql with odbc
drivers, in database i dont update register, but if i exec the execute
sql in manager, then i update the register. Someone knwos what is
happening?
thanks for answer.
... more >>
Finding prepared statement sql
Posted by birju at 6/2/2006 5:54:42 AM
Hi,
I'm running SQL Profiler on an SQL Server 2000 database. I see that one
stored procedure gets repeatedly executed having a handle of '1'. This
query takes a long time to complete.
How do I find what the text of the stored procedure is? I cant see any
handle being created (using sp_prepare) ... more >>
Interface for SQL Server database
Posted by Petteri at 6/2/2006 5:03:03 AM
Comments and ideas for software tools (ActiveX components)
to make a user interface for database.
... more >>
HAVING prob !
Posted by daoud97 NO[at]SPAM yahoo.com at 6/2/2006 3:49:10 AM
Bonjour,
CREATE TABLE [dbo].[MAND](
[Mat] [varchar](5)
[Dur] [varchar](1)
) ON [PRIMARY]
Mat Dur
16030 d
16030 i
31217 i
10000 d
12000 i
10000 d
31217 d
35000 d
36000 i
35000 d
Je voudrais avoir le resulat suivant (i need this result) :
10000 d
35000 d
Car ils... more >>
this sql command make me sick
Posted by enzo at 6/1/2006 3:54:27 PM
hello everyone...
after several days trying to find the right command.. i have to ask you
people...
this is the deal:
i have two tables related...
the first one is the master, the second the slave...
the first has fields like code, name, department and periodicity of
payment...
the sec... more >>
Question about using AND in WHERE...
Posted by JDeats at 6/1/2006 12:16:00 PM
If I have a three column table, will call it AvailClasses
SchoolName, Subject, NumOfClasses
---------------------------------------------------------------
Emil, Biology, 3
Emil, Chemistry, 1
Emil, Calculus, 4
Prestwood, Biology, 2
Prestwood, Chemistry, 4
Prestwood, Calculus, 2
Westha... more >>
money data type
Posted by HandersonVA at 6/1/2006 11:38:46 AM
I choose a price field as a money data type, but I cannot change the
scale of this.
the default scale is 4 (it dimmed).
how can I change to 2? I only need 2 scale such as $23.33 instead of
$23.3344
... more >>
default value on quantity and price field
Posted by HandersonVA at 6/1/2006 9:41:52 AM
should I set to "0" as a default value on a quantity and a price field
or set to "null"?
if a user enter nothing on the quantity or price field on a web
browser, should I treat it as null or "0"? I am so confused about this
concept. please advise me. thank you.
... more >>
|