I build a store procedure to make a search in my customers table. But i would like to validate the sql query i build berfore running it. Is there a way to do that ?
I found something with SET PARSEONLY ON....
I had the same problem, my remote server ( Windows 2003) have an integrated firewall software like on windows XP, i stop it and then evrything goes right
you can find informations in the sysobects, sysindexes, sysfiles and spt_values tables.
If you need informations send by sp_spaceused look in it and take what u need exactly.
Here is the source of sp_spaceused :
create procedure sp_spaceused --- 1996/08/20 17:01
@objname nvarchar(776) =...
the sql user who query your linked server have no rights.
So you msut map this user to an user who have rights on your linked server.
To do it, go in sql server entreprise manager / security
right click on your linked server and choose security.
Here u can do ur mapping.
You must drop your constraint before adding a new one :
ALTER TABLE dbo.<table name>
DROP CONSTRAINT <constraint name>
go
ALTER TABLE dbo..<table name> ADD CONSTRAINT
<constraint name> DEFAULT 'GoodBye' FOR <column name>
if you ignore the constraint name you can do this :
declare...
try to enlarge the table width or use the nowrap property in TD tags. To work correctly, you must replace your space by 'non breakable spaces' ( )
try to replace this part :
from SCHEDULE, PROJECT
where PROJECT.PROJECT_ID=@key and
SCHEDULE.PROJECT_ID=PROJECT.PROJECT_ID
by
from SCHEDULE inner join PROJECT
on PROJECT.PROJECT_ID=@key and
SCHEDULE.PROJECT_ID=PROJECT.PROJECT_ID
the mail profile must be set under the same <domain><account> that SQL server service start with.
on the computer on which SQL server start, launch MMC, look in the server properties with wich account starts SQL and change it with a windows <domain><account>
if you don't specify the size of ur char the default value will be 1
so what u wrote means @PONUM CHAR(1)
then if the field PO_NUMBER is a numeric field u'd better use an numeric parameter
i want to replace some text using regular expression but it doesn't work :
here is my text (some TSQL)
CREATE PROCEDURE [dbo].[DELETE_FILE]
(@FILE varchar(255))
AS
--Comment
exec master..xp_deletefile @FILE
/*
maxi comment
*/
GO
I want to delete blank lines and comments
Dim re As Regex...
this work :
<html>
<head>
<script language=javascript>
function fTest()
{
var szString = new String();
var re = new RegExp();
re = /\n/g
szString = (document.getElementById("TE1").value).replace(re ,"<li>");
document.getElementById("TXT").innerHTML =...
I have to built a database that i'll copy on three computers. Is there a way to identify each database ?
i know how to identify Access with 'Application.ProductCode' which gives me the Access GUID but what i need is a kind of Database GUID
you should have a look to regular expression
function numbersOnly(szString)
{
var RegEx = new RegExp();
RegEx = /^\d+$/
return (RegEx.test(szString));
}
for the age between 1 & 100
if (numbersOnly(age) && parseInt(age) > 1 && parseInt(age) < 100)
i had the same problem, the subquery return more than one result because two or more value in your [to date] column are equal
try to use this in your subquery :
select max(distinct [to date]) ....
i don't understand well what you want to do,
but you shouldn't use this :
<select name="select1" onChange="document.myform.submit()">
it post the page on itself and you'll loose all your data
don't use the onchange event on your 'option' tag and try something like this...
here is a way of doing :
<html>
<head>
<script language=javascript>
function fAlert(FLAG)
{
if (FLAG == 1) alert("Message 1");
else alert("Message 2");
}
</script>
</head>
<body OnLoad="fAlert(<%=YouASPVariable%>)">
</body>
</html>
another way :
<script...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.