|
Hey Michael, thank you for your reply.
|
|
|
|
|
If u are not storing naything inside database and using specifically client side applications then u don't really need to install it
U may have some other options for storage
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
In case anyone is interested, a new Sql Intellisense addin for VS 2003/2005 was just released:
SqlAssist, www.roundpolygons.com[^]
Many features beyond just fast intellisense...
~Steve
|
|
|
|
|
Hi Steeve,
Thanks a lot
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshres
http://himabinduvejella.blogspot.com
|
|
|
|
|
hi all
I have declare following variable in a function
DECLARE @strTemp VARCHAR(100)
SET @strTemp=(SELECT AiLine From Table1 WHERE id=1)
Now can I get the true Length of the '@strTemp' Value?
can any body please help me..
Thanks in advace.
|
|
|
|
|
DECLARE @strTemp varchar(100)
DECLARE @Length int
SELECT @strTemp = AiLine, @Length = DATALENGTH(AiLine) FROM Table1 WHERE id=1
|
|
|
|
|
that's worked..thanks....
|
|
|
|
|
Hi All,
Can anyone answer me this question.
Is there any restriction in the number of rows returned by a select command? Meaning that assume that I have over 1 million records in my table and I do a select from this table. Does my SQL Server 2000 restrict me by showing only first 1 lakh records or 2 lakh records etc etc. Does SQL has the capability of showing any number of rows returned by the SELECT command.
Thanks
|
|
|
|
|
hi,
you can use Top key word for that..
ex:-
SELECT TOP 1000 PDateFrom FROM dbo.Period WHERE FareAutoNum=@FareAutoNum
|
|
|
|
|
|
Subramaniam s.V. wrote: Does SQL has the capability of showing any number of rows returned by the SELECT command.
Yes, the limitation is on the client, can the client display that many records.
Beyond that why would you want to over whelm your use with 1 Million records? There is no way they could use that much information at once. It’s just better to break it down. Just my two cents.
-- modified at 6:42 Wednesday 22nd March, 2006
|
|
|
|
|
I have Command but when it run "Incorrect syntax near the keyword 'FETCH'."
I want @sFunctionID = FETCH NEXT FROM GetaLl_FunctionID
but it error
Can U hepl me !
thanks !!!
DECLARE GetaLl_FunctionID CURSOR FOR SELECT FunctionID FROM SYS_Functions
OPEN GetaLl_FunctionID
--------------------------------------------------
Declare @i int
Declare @sFunctionID char(50)
SET @sFunctionID = (FETCH NEXT FROM GetaLl_FunctionID)
SET @i = 0
while @i < (SELECT COUNT(FunctionID) FROM SYS_Functions)
BEGIN
INSERT [dbo].[SYS_Funcs_FuncGroups]
(
[FunctionID],
[FunctionGroupID]
)
VALUES
(
@sFunctionID,
'GroupAdmin'
)
END
ClOSE GetaLl_FunctionID
AnhTin
-- modified at 21:56 Tuesday 21st March, 2006
|
|
|
|
|
FETCH NEXT FROM GetaLl_FunctionID INTO @sFunctionID
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
I have a little question.
I work in VS 2005.
I want to create data-bound application with SQL Server 2000.
I've created data-bound controls on the form by dragging my node from the Data Sources window onto the form. This wisard creates BindingNavigator control too. It works good.
But I want to change work of his button DeleteItem.
I want before deleting item to ask ("Are you shure ?") and if answer "No"
to cancel deleting.
How can I cancel deleting ? I want to do it in Click event of button DeleteItem.
Help me please.
I'm sorry for my english.
|
|
|
|
|
Hi ALGNET
I'm not an expert but i think You can do something like this:
1. Set your BindingNavigator's 'DeleteItem' property to: 'none' (in form designer)
2. In the code window of your form write:
Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As _
System.Object, ByVal e As System.EventArgs) Handles _
BindingNavigatorDeleteItem.Click
If MessageBox.Show("Are You sure?", "Erase Data", _
MessageBoxButtons.OKCancel) = Windows.Forms.DialogResult.OK Then
Me.'YourBindingSource'.RemoveCurrent()
Else
Me.'YourBindingSource'.CancelEdit()
End If
End Sub
Hope this help You, for me it works fine.
Regards.
|
|
|
|
|
Thank you. It's work excellently !
|
|
|
|
|
I have a SQL Server view that has three linked tables (one main table and two reference data lookup type tables) and have added "INSTEAD OF UPDATE" / "INSTEAD OF INSERT" triggers to it so that I can add/update the main table through the view.
This works well from T-SQL or through the enterprise manager application, but when I link to the view through Microsoft Access it is read only. Does anyone know how I can convince Microsoft Access that the view is, in fact, editable.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
It turns out that you have to write a "Data Definition Query" in access to add a fake unique index on the view and execute this before the view will be considered editable by Access.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
hi, can anybody advice me on good exception handling in TSQL? Thanks!
|
|
|
|
|
Which version?
In SQL Server 2005 you can use Try..Catch.. exception handling but in 2000 (or other RDBMS) you need to check the value of @@error after each statement and maybe use a GOTO to jump to an error handler in your proc code?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
In sqlserver 2005 u can handle exceptions
using try catch block
but in sqlserver 2000
u have to rollback the transaction if any error occurs
That will be caught by @@error
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshres
http://himabinduvejella.blogspot.com
|
|
|
|
|
Hi:
how can i change the crystal report from portrait to Landscape in Design time ......
Thanks in Adv for viewing and replying.
Have a good day
|
|
|
|
|
while u are desing report right click in space choose Design->Printer Setup there u can make changes.(chose Landscape)
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
I have a Employee I want Add he in many groups : Group1 & Group 2 ....
I want create PROCEDURE use Transaction Insert Employee on groups
Can't U help me
Exameple: Emp is E001
Groups : Group1,Group2.....
|
|
|
|