all groups > sql server programming > january 2007 > threads for thursday january 11
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
How to modify a report in Crystal Report 7
Posted by dpk.sinha NO[at]SPAM gmail.com at 1/11/2007 11:07:44 PM
I am a Web developer. I am new to VB 6.0 and Crystal Report. I have
joined an organisation where there is an application running(developed
in VB6 and crystal report 7). I have to modify one report. In two
columns I have to make minor changes i.e put > and = operator. I am
encountering following... more >>
DateTime Between
Posted by Jake K at 1/11/2007 8:12:56 PM
Table1 contains many, many datetime values in Col1. What is the best method
to select all values in col1 where the time (date doesn't matter, just time)
is between 4:00 PM and 4:00 AM? I need to get all values between 4 PM and 4
AM, also all values between 4 AM and 4 PM.
I've tried datepart... more >>
How does one pass the server name as a paramter
Posted by Stephen K. Miyasato at 1/11/2007 8:10:44 PM
I currently have this stored proc but wish to pass the serverName as a
parameter.
How is that done?
Create Procedure PFT_InsertPatInfo
@PatNo int
AS
SET NOCOUNT ON
DECLARE @CheckForPat int
SET @CheckForPat = (Select COUNT(*) FROM
[MDsync3\OFFICEMEDIC].OfficeMedic.OfficeMedicData.Pati... more >>
To all Gourous....
Posted by lulu at 1/11/2007 7:29:22 PM
To all:
I am a beginner on SQL statement and need to know how to write the
right SQL Statement to obtain a new column of results that will come
from the addition of two dataset located into two different column.
For example, I have the following table:
ID# Customer_1 Cus... more >>
Converting code into a stored procedure
Posted by zwieback89 via SQLMonster.com at 1/11/2007 5:05:10 PM
Hi,
I work on SQL Server 2000. I would like to convert code into a stored
procedure. However when I work on this, I get an error:
This stored procedure takes all the records from a subordinates table and
dumps it into a Tree table.
What I do before this is to drop the existing tree and stac... more >>
SQL 2000 and thesaurus
Posted by tolgay at 1/11/2007 4:08:15 PM
Hi,
I use sql 2000 server and full text search. I would like to use fulltext
thesaurus feature. Some how the thesaurus function does not work. What would
be problem and how to solve it in SQL 2000 Server not SQL2005 we don't have
enough money to upgrade it : ) ?
Thanks
There is a table ... more >>
help calling one procedure from another
Posted by Keith G Hicks at 1/11/2007 3:36:18 PM
SQL 2k.
I have a stored procedure that returns a dataset. I need to call that
procedure in another procedure. Here's the idea of what I'm doing
(oversimplified but it should illustrate what I am asking):
Procedure1:
SELECT c1, c2, c3 FROM Customers
SET @iError = @@ERROR IF @iError <> 0 R... more >>
Update all records in a table using a UDF
Posted by hnteknik at 1/11/2007 2:21:29 PM
I have a UDF to count the number of responses taken for a specific
survey and use it to update the surveys record:
ALTER FUNCTION [dbo].[AIM_fn_updateResponseCount]
(@intSurveyID int )
RETURNS int
AS
begin
declare @return int
SELECT @return = count(*) FROM usd_response WHERE surveyID =
@i... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Insert into a certain field not working
Posted by .Net Sports at 1/11/2007 2:14:48 PM
I need to insert a two-letter state abbreviation into a 'state2' field
in my sql database in the first 67 records of the county_details table:
insert into county_details (state2) values ('al') where couid in
between 1 and 67
....doesn't work, error being there are non-null fields that can't ... more >>
Sql Endpoint created but can't access it through IIS
Posted by Rajiv at 1/11/2007 12:44:56 PM
Hi all,
I have created an endpoint at certain port# but I can't access it
thorugh IIS.
CREATE ENDPOINT GALACTIC_endpoint
STATE = STARTED
AS HTTP
(
SITE = '*',
PATH = '/GALACTIC_EP',
AUTHENTICATION = (INTEGRATED... more >>
Decimal conversion
Posted by SQL_help at 1/11/2007 12:25:18 PM
DECLARE @space_in_MB INT
SET @space_in_MB = 10081216
SELECT @space_in_MB/1024
-- Gives the output as 9844
But in real division, 10081216 / 1024 gives 9844.9375.
How can I get that decimal value (with only max 4 digits after decimal
point) from the query?
Thanks!
Anna
... more >>
SQL 2005
Posted by jimmy at 1/11/2007 12:18:54 PM
I have got VStudio 2005 profesinal on my machine.
Does that mean I have SQL Server 2005 installed ?
I can't see any in my start->programs
All I can see Sql Server 2005->Configurations Tools
can somebody help me
... more >>
Calculate percentage of improvment between two numbers
Posted by yaser at 1/11/2007 12:17:40 PM
I got a mathematical question here;
I have two counters and I want to get the percentage of improvement between
the two counters .i.e. if counter1 = 20 and counter2 =35 what is the
improvement percentage between the two counters.
I have tried this:
((35 - 20)/20)*100% = 0.75
... more >>
How to limit OUTER join to a single row?
Posted by bob at 1/11/2007 12:16:30 PM
This must be one of the most common queries. Still, as a programmer, I've
never been comfortable with SQL. So, I'd appreciate your help.
Query:
SELECT c.AccountNumber, c.Name, co.Name AS ContactName, co.Phone,
co.EmailAddress,
sp.StateProvinceCode,
a.AddressLine1, a.AddressLine2, a.City... more >>
Group by count
Posted by luna at 1/11/2007 12:12:48 PM
Ive created a query with group by that utilizes COUNT
however i don't want it to count 01/01/1900
eg
01/01/2006
02/01/2007
03/03/2006
01/01/1900
01/01/1900
count should be 3
is this possible using groupby ?
cheers
mark
... more >>
How to do something in SQL
Posted by Blasting Cap at 1/11/2007 11:33:08 AM
I have to create a report to run monthly that summarizes data across a
row, as well as down a column, based on a 2 character business area, as
well as a 2 character channel. There may be shipments of a particular
business area in one month, and there may not be shipments in another
month. ... more >>
How to transfer backup from client to server machine (SQL Server 2005)
Posted by Oz at 1/11/2007 11:20:47 AM
In my line of bussiness it is not possible to help every client on this
issue (several thousand users) What I need to achieve is transferring
backup to the server by using SQL Server to do it and restoring it with
SQL Server. A solution for SQL 2005 would be perfect (it is not
necessary to solve... more >>
Group By question
Posted by theredmiata NO[at]SPAM hotmail.com at 1/11/2007 10:57:24 AM
All,
I have a table containing the following data:
CustNo Qty Brand
302 3 Brand 1
302 1 Brand 2
400 1 Brand 1
402 2 Brand 3
The report needs to look like the following (below) where the Qty is
summed per custno & brand.
... more >>
Cannot retrieve State infor for error 18456
Posted by Jason at 1/11/2007 10:34:36 AM
Hi All,
I have one user using integrated security that cannot login to any
database on my server. I have checked his login/permissions several
times and I have hundreds of other users that can login fine. I believe
that his problem lies somewhere between his network account and his
softricity s... more >>
Query Help
Posted by Mangler at 1/11/2007 10:03:13 AM
Using SQL 2000
Table 1
idlot idrma part etc......
1 11 a
2 11 b
3 11 c
Table 2
idseed idlot recqty etc.....
1 1 50
2 3 45
I need to write a query that returns the idlot wh... more >>
SQL 2005 view based on linked server table can't be manually updated
Posted by grosdug NO[at]SPAM hotmail.com at 1/11/2007 9:35:26 AM
Hi everyone!
I have two SQL Server 2005, Server_A and Server_B. On Server_A, I
created a linked server (Server_B). On Server_A, I created a view that
looks like:
CREATE VIEW [dbo].[vwTest] AS
SELECT LastName, FirstName
FROM [Server_B].test.dbo.table_1
The view returns corr... more >>
Multiple inserts inserting @@identity into the temp table?
Posted by Niclas Colleen at 1/11/2007 9:04:46 AM
Hi!
I'm putting together values into a temp table, then I'm updating
table Subscriptions with the data in my temp table.
The problem is I need the @@identity in return from the inserts,
inserted into the temp table for later use.
So this is how I would want it to work:
insert into Subscr... more >>
Help finding out if DB exists...
Posted by rafael1119 NO[at]SPAM hotmail.com at 1/11/2007 7:30:39 AM
All,
I have a a sql script that updates some tables in a database but the
database name can be DB1 or DB2.
Before I use the "USE DataBase" command, I would like to find out if which
database to run the update against so the script won't fail.
Is there a statement I can use to do the fol... more >>
Rolling values up a tree
Posted by Robert Bravery at 1/11/2007 5:59:25 AM
HI all,
I have a adjacency tree model. Each leaf node in the tree will have a value.
But each leaf node needs to roll-up total to its parent node, then that
parent node needs to roll up to its parent. All the way up the tree to the
root.
I don't think that this is simple
GO
CREATE TA... more >>
delete duplicate row
Posted by x taol at 1/11/2007 4:54:41 AM
tbl(fld1,fld2,fld3)
fld1 fld2 fld3
2 3 4
3 2 5
2 3 4
3 9 5
3 9 5
i want to make like below
fld1 fld2 fld3
2 3 4
3 2 5
3 9 5
namely, duplicate row deletion.
i want to query stateme... more >>
DTS package error, sp_OAMethod GetExecutionErrorInfo usage
Posted by Xav at 1/11/2007 4:01:04 AM
Hi, I would like to catch the error of a DTS package and display it
exactly how Entreprise Manager displays them.
The environment used is one remote SQL server 2000 and one ADP client
(2003) which triggers the DTS package through the OLE sp (creation of
the package, execution and clean up).
I... more >>
Maximum nchar value
Posted by niklas.arbin NO[at]SPAM nordicstation.com at 1/11/2007 2:26:25 AM
I'm trying to write a constraint that will evaluate true for any nchar
string....
what nchar value will make this expression always true
anystring <= 'the value I'm looking for'
Rules:
The only comparison allowed is <=
No functions may be used such as unicode() etc
The reason i ne... more >>
creating sql database in visual basic
Posted by gss.italy NO[at]SPAM iol.it at 1/11/2007 2:14:30 AM
First i am newbie in vb and Sql server...
Is possible to create and attaching, via vb classic or VBA, a sql
database in this instance:\\DVD377-14D9E48C\SQLEXPRESS...
I have Sql Express.
Database name: mydatabase
Database Table: mytable
fileds:
fiedl1 text format
fiedl2 text format
fie... more >>
necessary Help,pls- INDEX ?
Posted by Nassa at 1/11/2007 1:21:55 AM
Hi All,
I want to know HOW and WHEN I have to use indexed views?
Thanks,
Nassa
... more >>
Morphx IT programming book (X++)
Posted by ariesliew at 1/11/2007 12:22:27 AM
Hey guys,
Im actually new to this axapta X++. for Axapta 3.0.. especially I
really don't know where to find suitable resources to improved my
skills.. I need you all to help me....
Currently I'm working on a project which require me to learn X++, where
I need to catch up the X++ skills.. Fo... more >>
|