Showing posts with label standard. Show all posts
Showing posts with label standard. Show all posts

Friday, March 30, 2012

Prediction Accuracy

hi,

I am using time series agorithm.I need standard deviation in %. I am using SELECT StudID, PREDICTSTDEV([Perf]) FROM [Stud_Model].This one is giving me the standard deviation like this

StudID stDev

001 2.891298978779

002 2.797288978779.

But I need like this

StudID stDev

001 +50%

002 +51%(From The Previous) like that.

Is it Possible.

Thanks,

Karthik.

To get the standard deviation as a percentage, you just need to get the predicted value and divide e.g.

PredictStdev([Perf])/Predict([Perf]) // of course Predict(Perf) could be 0.

However, I'm not sure what you meant by "From the Previous", though

Prediction Accuracy

hi,

I am using time series agorithm.I need standard deviation in %. I am using SELECT StudID, PREDICTSTDEV([Perf]) FROM [Stud_Model].This one is giving me the standard deviation like this

StudID stDev

001 2.891298978779

002 2.797288978779.

But I need like this

StudID stDev

001 +50%

002 +51%(From The Previous) like that.

Is it Possible.

Thanks,

Karthik.

To get the standard deviation as a percentage, you just need to get the predicted value and divide e.g.

PredictStdev([Perf])/Predict([Perf]) // of course Predict(Perf) could be 0.

However, I'm not sure what you meant by "From the Previous", though

sql

Friday, March 23, 2012

Pound Sign Problem

Hi

I have come across a bit of problem with my Web Form. I have standard textbox which inserts a value into a SQL 2000 database. However if I put a pound sign anywhere inside the text box and do the insert it disappears when I try and reshow the value.

I have checked the database field to see if it has been inputted but its no where to be seen.

So what has happened to my pound sign? any ideas?

I am using VS.Net 2003.

Thanks in advanceThat is strange. SQL 2000 does not reject the pound sign. Neither does the text box control. I did several tests, cannot seem to produce your problem. Do you do any kind of massage to your input in your code before it is insert into the database table?

Please post your code.|||Hiya

Sorry for the delay in getting back to you, please find below my code. This problem really does have me miffed

Cmd As New SqlCommand

Conn.Open()
With objCmd
.Connection = Conn
.CommandType = CommandType.Text
.CommandText = "INSERT INTO PhoneList (FirstName, Surname) " & _
" VALUES (@.FirstName, @.Surname)"

.Parameters.Clear()
.Parameters.Add("@.FirstName", SqlDbType.VarChar).Value = txtFirstName.Text
.Parameters.Add("@.Surname", SqlDbType.VarChar).Value = txtSurname.Text
.ExecuteNonQuery()
End With
Conn.Close()

Field types in theSQL Server 2000 DB are Varchar's. Just thought could this be one of the rasons for the roblem

Thanks in advance|||I have seen this problem before and I think the DataType on the column needs to beText to store ASCII characters.|||Hi PD

I have changed the data type to Text in my SQL DB but I still get the same problem

It just seems really odd, every other character works including !"$%^&*()

but the £ just does not get stored|||I was sleeping when I read your post, I thought you meant the # sign.

Themonetary data types MONEY and SMALLMONEY can accept many national currency symbols like the British pound, the Euro and others.|||How about if you use NVarChar instead?
Although you shouldn't have to go unicode in order to save the pound sign...

Regards
Fredrik|||Hi Fredrik

I have tried changing it to NvarChar and still didnt have any joy. I have even searched around on teh web and cant seem to find anybody else who has had that problem

Just wondering can anybody else replicate this problem there end?

I dont seem to have any hair left..... i think ive pulled it all out|||OK the only way I can seem to get round the problem is by inputting the HTML equvilant of a £ sign which is £

So when this is rendered it appears as a £

But im sure this cant be a solution.... can it?

I even tried to set validateRequest="false", but did not have any joy|||I am sorry. I thought it was # as well.
I did a test. Cannot re-produce the problem. I am using Varchar for the data field.

Did you try to debug and see whether the pound value was passed in correctly?|||Here is my test code in C#. I just have a textbox at the front end.


conn.Open ();
string strInsert = "Insert Into Chun (Test) Values (@.chun)";
SqlCommand cmd = new SqlCommand (strInsert, conn);
SqlParameter p = new SqlParameter("@.chun",SqlDbType.VarChar,50);
p.Value = txtPound.Text;
p.Direction = ParameterDirection.Input;
cmd.Parameters.Add (p);
cmd.ExecuteNonQuery ();
conn.Close ();

Here is the value I entered in the text box:

£5432

The value is stored and retrieve displayed as it is.|||I have a similar issue when I pass the # as part of a query string! It chops everything off after the pound sign!|||I did eventually manage to solve my pound sign problem, it was a problem with the globalization setting in the web.config.

Try reading the below article and see if it helps

http://www.howtodothings.com/showarticle.asp?article=755

Good luck

Wednesday, March 21, 2012

Postgresql migration tool?

I have a postgres db and would like to convert to SQL Express or standard edition. Is there a conversion or migration tool available?

I can dump the postgres db to a sql file but MS has slightly different syntax and datatypes so I have to go in a manually modify the sql file for every table and data type. Is there an easier way? Thanks!

I'm not aware of any such tool from Microsoft but I've moved this thread to the database engine forum where you're more likely to find a knowledgeable answer.

Paul

Tuesday, March 20, 2012

post from text box to SQL insert

Hello,

I'm trying to update a single field of a record and i want to do it using a standard multi line text box but I'm not sure how to write the c# command to process the sql update. I would also like the entry to be added into the database with line breaks.

Thanks for your help

There is nothing to ask..... you can do it using the same way u r updating the others.... you do not need any c# command.... its the query on which all this depends...

you can use query... : update <table name> set <feild name>= textbox1.text where <condition>....

and about multi lines.... you do not need to worry about line breaks..... the data would be stored in the database just as the way it is in the multiline textbox.... and would be fetched in the same manner...

and do tell me if its any worthy 4 u or not.

|||

Ok - In theroy I get what your saying but then I have VisStudio post out the code I need to make the text box and the supporting data source and I get all of this:

----------------

<asp:TextBox ID="txtNotes" runat="server"></asp:TextBox>
<asp:SqlDataSource ID="sqlUpdateNotes" runat="server" ConnectionString="<%$ ConnectionStrings:dbNetOps %>" DeleteCommand="DELETE FROM [MasterServerlist] WHERE [ID] = ?" InsertCommand="INSERT INTO [MasterServerlist] ([ID], [Notes]) VALUES (?, ?)" ProviderName="<%$ ConnectionStrings:dbNetOps.ProviderName %>" SelectCommand="SELECT [ID], [Notes] FROM [MasterServerlist] WHERE ([ID] = ?)" UpdateCommand="UPDATE [MasterServerlist] SET [Notes] = ? WHERE [ID] = ?">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Notes" Type="String" />
<asp:Parameter Name="ID" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="gvServers" Name="ID" PropertyName="SelectedValue"
Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="ID" Type="Int32" />
<asp:Parameter Name="Notes" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
------------------

What I'm trying to do is :

1: display the contents of the notes field in the text box where the record matches the record selected in a gridview element

2: have the onchange event of the notes field then post back an update to the database and redisplay the new notes in the text field

I'm very new to ASP and appriciate your help.

Thank you

|||

I cannot find anything wrong in your code... could you please describe your problem in details...... or what kind of errors you are receiving(if any).....

And also you wanted to store all the data in the textbox to the database with the line breaks.... you should set the textmode attribute of textbox to multiline...

Wednesday, March 7, 2012

Possible to add a Flash Player control to a report?

I'm working on a project where the client wants us to create custom charts which have features not found in the standard Reporting Services charts. I would like to use flash to build this and have found an existing flash charting package for which I have the code and which I plan to expand.

Here's the problem:

The client wants to include these charts in his Reports. Is there some way to add a flash control to a report so that it will appear on the web page as a fully-functional flash presentation, which can then be included when printing or exporting?

The alternative, would be to figure out some means of generating the chart using flash outside of the report, exporting a bitmap of the chart and then saving the bitmap to a known location on the file system so It can be referenced by a report. This has some serious complications, and may not be feasible.

Any ideas?

Embedding flash into reports is not supported. While there are several third party advanced charting packages available which specifically integrate with SSRS2005 Standard, Enterprise, or Developer editions (based on the CustomReportItem extensibility feature), they also cannot use flash because it is currently not supported.

-- Robert

Saturday, February 25, 2012

possible currupt database?

Hello everyone,
I recently moved a database from a Windows 2000 server (standard)
running SQL 2000 SP3 and placed it on a Windows 2003 server (standard) also
running SQL 2000 SP3. For some weird reason, on our citrix server which is
a BL20P (HP Blade) when my clients access their session and run the
application that is tied into the database that I just moved from one server
to the other, when they are prompted to either cancel or save their work, it
freezes and it doesn't save their work. Prior of moving this database, they
didn't have this problem, the other weird thing is, other people (normal
workstation computers) when they access the same program it works fine and
there are no hang ups. This program is a proprietary program that we use to
issue permits and it's made by HDL companies. I've had no luck with them
because they are pointing figures at me. My question, is it possible that
during the transportation of the database, and could it have been corrupted
during the process? Is there a way to do a consistency check on the
database? Help...
Thank you
Alex AndersonAlex,
Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
the BOL.
However, if your other non-HDL users are working, then I suspect the
database is probably not corrupted. I would suggest that you recheck the
security issues (grants, usernames, etc) that the HDL documentation should
specify. It may be that an account or account rights got missed during the
move.
Russell Fields
"Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hello everyone,
> I recently moved a database from a Windows 2000 server (standard)
> running SQL 2000 SP3 and placed it on a Windows 2003 server (standard)
also
> running SQL 2000 SP3. For some weird reason, on our citrix server which
is
> a BL20P (HP Blade) when my clients access their session and run the
> application that is tied into the database that I just moved from one
server
> to the other, when they are prompted to either cancel or save their work,
it
> freezes and it doesn't save their work. Prior of moving this database,
they
> didn't have this problem, the other weird thing is, other people (normal
> workstation computers) when they access the same program it works fine and
> there are no hang ups. This program is a proprietary program that we use
to
> issue permits and it's made by HDL companies. I've had no luck with them
> because they are pointing figures at me. My question, is it possible
that
> during the transportation of the database, and could it have been
corrupted
> during the process? Is there a way to do a consistency check on the
> database? Help...
> Thank you
> Alex Anderson
>|||Russell,
Thank you for responding. I have logged in the same user that logs into
citrix where the problem exists on a workstation and that same user doesn't
have the problem. Security I have specified are two groups and there is
another SQL security user but that is for administration purposes. I'll
read up on DBCC and CHECKDB. It's the strangest problem I've ran into, and
I have everyone involved except Microsoft which would be my last ditch
effort.
Thank you
Alex Anderson
"Russell Fields" <RussellFields@.NoMailPlease.Com> wrote in message
news:OmZCaGdQEHA.1392@.TK2MSFTNGP09.phx.gbl...
> Alex,
> Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
> the BOL.
> However, if your other non-HDL users are working, then I suspect the
> database is probably not corrupted. I would suggest that you recheck the
> security issues (grants, usernames, etc) that the HDL documentation should
> specify. It may be that an account or account rights got missed during
the
> move.
> Russell Fields
> "Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
> news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> also
> is
> server
work,[vbcol=seagreen]
> it
> they
and[vbcol=seagreen]
use[vbcol=seagreen]
> to
them[vbcol=seagreen]
> that
> corrupted
>

possible currupt database?

Hello everyone,
I recently moved a database from a Windows 2000 server (standard)
running SQL 2000 SP3 and placed it on a Windows 2003 server (standard) also
running SQL 2000 SP3. For some weird reason, on our citrix server which is
a BL20P (HP Blade) when my clients access their session and run the
application that is tied into the database that I just moved from one server
to the other, when they are prompted to either cancel or save their work, it
freezes and it doesn't save their work. Prior of moving this database, they
didn't have this problem, the other weird thing is, other people (normal
workstation computers) when they access the same program it works fine and
there are no hang ups. This program is a proprietary program that we use to
issue permits and it's made by HDL companies. I've had no luck with them
because they are pointing figures at me. My question, is it possible that
during the transportation of the database, and could it have been corrupted
during the process? Is there a way to do a consistency check on the
database? Help...
Thank you
Alex Anderson
Alex,
Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
the BOL.
However, if your other non-HDL users are working, then I suspect the
database is probably not corrupted. I would suggest that you recheck the
security issues (grants, usernames, etc) that the HDL documentation should
specify. It may be that an account or account rights got missed during the
move.
Russell Fields
"Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hello everyone,
> I recently moved a database from a Windows 2000 server (standard)
> running SQL 2000 SP3 and placed it on a Windows 2003 server (standard)
also
> running SQL 2000 SP3. For some weird reason, on our citrix server which
is
> a BL20P (HP Blade) when my clients access their session and run the
> application that is tied into the database that I just moved from one
server
> to the other, when they are prompted to either cancel or save their work,
it
> freezes and it doesn't save their work. Prior of moving this database,
they
> didn't have this problem, the other weird thing is, other people (normal
> workstation computers) when they access the same program it works fine and
> there are no hang ups. This program is a proprietary program that we use
to
> issue permits and it's made by HDL companies. I've had no luck with them
> because they are pointing figures at me. My question, is it possible
that
> during the transportation of the database, and could it have been
corrupted
> during the process? Is there a way to do a consistency check on the
> database? Help...
> Thank you
> Alex Anderson
>
|||Russell,
Thank you for responding. I have logged in the same user that logs into
citrix where the problem exists on a workstation and that same user doesn't
have the problem. Security I have specified are two groups and there is
another SQL security user but that is for administration purposes. I'll
read up on DBCC and CHECKDB. It's the strangest problem I've ran into, and
I have everyone involved except Microsoft which would be my last ditch
effort.
Thank you
Alex Anderson
"Russell Fields" <RussellFields@.NoMailPlease.Com> wrote in message
news:OmZCaGdQEHA.1392@.TK2MSFTNGP09.phx.gbl...
> Alex,
> Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
> the BOL.
> However, if your other non-HDL users are working, then I suspect the
> database is probably not corrupted. I would suggest that you recheck the
> security issues (grants, usernames, etc) that the HDL documentation should
> specify. It may be that an account or account rights got missed during
the[vbcol=seagreen]
> move.
> Russell Fields
> "Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
> news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> also
> is
> server
work,[vbcol=seagreen]
> it
> they
and[vbcol=seagreen]
use[vbcol=seagreen]
> to
them
> that
> corrupted
>

possible currupt database?

Hello everyone,
I recently moved a database from a Windows 2000 server (standard)
running SQL 2000 SP3 and placed it on a Windows 2003 server (standard) also
running SQL 2000 SP3. For some weird reason, on our citrix server which is
a BL20P (HP Blade) when my clients access their session and run the
application that is tied into the database that I just moved from one server
to the other, when they are prompted to either cancel or save their work, it
freezes and it doesn't save their work. Prior of moving this database, they
didn't have this problem, the other weird thing is, other people (normal
workstation computers) when they access the same program it works fine and
there are no hang ups. This program is a proprietary program that we use to
issue permits and it's made by HDL companies. I've had no luck with them
because they are pointing figures at me. My question, is it possible that
during the transportation of the database, and could it have been corrupted
during the process? Is there a way to do a consistency check on the
database? Help...
Thank you
Alex AndersonAlex,
Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
the BOL.
However, if your other non-HDL users are working, then I suspect the
database is probably not corrupted. I would suggest that you recheck the
security issues (grants, usernames, etc) that the HDL documentation should
specify. It may be that an account or account rights got missed during the
move.
Russell Fields
"Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> Hello everyone,
> I recently moved a database from a Windows 2000 server (standard)
> running SQL 2000 SP3 and placed it on a Windows 2003 server (standard)
also
> running SQL 2000 SP3. For some weird reason, on our citrix server which
is
> a BL20P (HP Blade) when my clients access their session and run the
> application that is tied into the database that I just moved from one
server
> to the other, when they are prompted to either cancel or save their work,
it
> freezes and it doesn't save their work. Prior of moving this database,
they
> didn't have this problem, the other weird thing is, other people (normal
> workstation computers) when they access the same program it works fine and
> there are no hang ups. This program is a proprietary program that we use
to
> issue permits and it's made by HDL companies. I've had no luck with them
> because they are pointing figures at me. My question, is it possible
that
> during the transportation of the database, and could it have been
corrupted
> during the process? Is there a way to do a consistency check on the
> database? Help...
> Thank you
> Alex Anderson
>|||Russell,
Thank you for responding. I have logged in the same user that logs into
citrix where the problem exists on a workstation and that same user doesn't
have the problem. Security I have specified are two groups and there is
another SQL security user but that is for administration purposes. I'll
read up on DBCC and CHECKDB. It's the strangest problem I've ran into, and
I have everyone involved except Microsoft which would be my last ditch
effort.
Thank you
Alex Anderson
"Russell Fields" <RussellFields@.NoMailPlease.Com> wrote in message
news:OmZCaGdQEHA.1392@.TK2MSFTNGP09.phx.gbl...
> Alex,
> Yes, there are tools to do consistency checks. Read about DBCC CHECKDB in
> the BOL.
> However, if your other non-HDL users are working, then I suspect the
> database is probably not corrupted. I would suggest that you recheck the
> security issues (grants, usernames, etc) that the HDL documentation should
> specify. It may be that an account or account rights got missed during
the
> move.
> Russell Fields
> "Alex Anderson" <AAnderson@.Murrieta.org> wrote in message
> news:uKw5$3cQEHA.132@.TK2MSFTNGP09.phx.gbl...
> > Hello everyone,
> >
> > I recently moved a database from a Windows 2000 server (standard)
> > running SQL 2000 SP3 and placed it on a Windows 2003 server (standard)
> also
> > running SQL 2000 SP3. For some weird reason, on our citrix server which
> is
> > a BL20P (HP Blade) when my clients access their session and run the
> > application that is tied into the database that I just moved from one
> server
> > to the other, when they are prompted to either cancel or save their
work,
> it
> > freezes and it doesn't save their work. Prior of moving this database,
> they
> > didn't have this problem, the other weird thing is, other people (normal
> > workstation computers) when they access the same program it works fine
and
> > there are no hang ups. This program is a proprietary program that we
use
> to
> > issue permits and it's made by HDL companies. I've had no luck with
them
> > because they are pointing figures at me. My question, is it possible
> that
> > during the transportation of the database, and could it have been
> corrupted
> > during the process? Is there a way to do a consistency check on the
> > database? Help...
> >
> > Thank you
> > Alex Anderson
> >
> >
>