|
Aha I found the problem and it works.
I put mm for minutes - it should be mi.
|
|
|
|
|
Hi everyone,
I'm a software developer and just started my professional career life, question here i want to ask is ... that few days ago i was at client site to resolve some issue in application deployed by a company that uses MySQL for database, what i was found that there are four MySQL tables were crashed due to low harddisk space issue (I've searched on net that this is a usual problem with MySQL) that then i repaired by using myisamchk command. Error shown by MySQL when these were accessing is [table name] marked as crashed and should be repaired .
ok so this was the background scenario, now what i want to know/ask here is ... as described in above details that these 4 four tables were not accessible becuase they are crashed but I took a backup of this database and restore it to MySQL at another machine then i can access these table easily with no issue/error by MySQL, SO WHY THIS HAPPENS THAT AT ONE SIDE THESE ARE AS CRASHED AND ON ANOTHER THE BACKUP OF SAME DATABASE THAT WAS TAKEN WHEN THESE TABLES ARE CRASHED ARE THEN WORKING FINE.
I really will appreciate any kind of help on this topic Im just asking this for knowlegde and second thing is my boss also asked me the same question
|
|
|
|
|
khurram_shahzad wrote: ..were crashed due to low harddisk space issue...SO WHY THIS HAPPENS
If I had to guess - because of low hard disk space.
By the way...really, really bad idea to let a database server run out of hard drive space. Doesn't matter what type of database either.
|
|
|
|
|
The message might be a bit misleading. Crashed does not mean your tables are goofed up, it only means that the database engine has set an internal flag on those tables that indicate that the tables can no longer take new rows because of lack of space.
Once you move your database to a new server, your database engine is smart enough to recalculate the new space and removes the flag.
|
|
|
|
|
Yes thanks .. I'm also thinking the same.
|
|
|
|
|
Hi,
I am trying to make a merge replication between 2 remote machines: The remote server is running Windows 2008 Server with SQL database Server 2008 , the other local machine is running on a Windows7 and running also 2008 SQL Server.
I have configured my distribution database on the server and I have made a shared folder and gave it all the needed authority on the same Server as well.Then I have configured the Publisher on the same server along with the distribution and according to my reading that's the common used configuration.
Then I have configured my Subscriber on the local machine (Windows 7) with the same version of database.
However, once I start monitoring the replication from the subscriber I get this error "The schema script for tablename.csh could not be propagated to the subscriber". When I look into the publication side I see that there is an error about accessing the shared folder that I have created on the server, basically it cannot read it but I am sure that I have added all the needed authority for read/write to that folder, and I put this folder under the Administrators account and also I can see it under Computer management under the shared folder.
Sorry for my long question but I have worked hard on this and I would appreciate any help from the community.
Where did I go wrong with this? Is it the way I have shared this folder? Or the security agent.
I have followed the tutorial on this link http://www.sqlservercentral.com/stairway/72401/[^] which is really good but still I am getting the same error.
Your help is highly appreciated!!
Thank you!
|
|
|
|
|
I need your help . i have a spreadsheet In the Spread Sheet in the First line there is a field “Unit Type Total PQ”.
That field is calculated from =F2*D2 and the value of F2 = 0.05 and D2 = 12 so Excel reports that the Field “Unit Type Total PQ” results into 0.56.
If I take a CALCULATOR and multiply 0.05 * 12 I get 0.6
And if I go to SQL I get with this
SELECT CONVERT(DECIMAL(10,2),0.05) * 12
I get 0.60
Why is Excell giving me Incorrect values or how can i fix my SQL
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi Vuyiswa Maseko, Excel by default remove zero number from decimal value, if you want to display decimal value with 2 numbers with separator then right click on cell and Format Cells.. option then select Number category, there you can see option decimal places, where you can set 2 or another decimal places.
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Maybe your 0.05 is really 0.0466666666 ?
|
|
|
|
|
yes that is correct
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa[at]dotnetfunda.com
http://www.Dotnetfunda.com
|
|
|
|
|
Hi, I'm vickyraj.. I'm new to asp.net I'm creating studentrecord using database in asp.net.
I need prev and next button code i have tried to sort that one but i didn't get......
please... can anyone help me....to sort out here...
I'would be thankful to you....
vickyraj
|
|
|
|
|
1. Read the guidelines on how to ask a question.
2. Pick the right forum - you really should ask this in the ASP forum.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You can use asp.net data-grid option control to populate your data into browser in the right side property explorer limit property set to as you want
In this case your data populate into pagination
Kumar Ashish
|
|
|
|
|
See the following scenario:
Tables for the question:
Table : T1
c10 c12
e1 A
e2 B
e3 C
Table: T2
c1 c2 c3 c4 c5 C6
1 P e1 e2 null X
2 Q e3 null null Y
3 R e2 e1 null X
4 S e3 e1 e2 Z
The c3, c4 and c5 columns of T2 table depends on c12 column of T1 table.
I want the following output:
c1 c2 c3 c4 c5
1 P A B null
2 Q C null null
3 R B A null
4 S C A B
Can you help me to write an SQL to retrieve the above output from the table T1 and T2?
The SQL may be like:
Select c1, c2, t1.c12 as c3....... from t1, t2 where join condition
But I am not getting the actual sql in my mind.
So please help me regarding this.
|
|
|
|
|
I think it would be something like this:
SELECT c1, c2, tbl1.c12 AS c3, tbl2.c12 AS c4, tbl3.c12 AS c5
FROM
T2 LEFT OUTER JOIN
T1 AS tbl1 ON T2.c3 = tbl1.c10 LEFT OUTER JOIN
T1 AS tbl2 ON T2.c4 = tbl2.c10 LEFT OUTER JOIN
T1 AS tbl3 ON T2.c5 = tbl3.c10
Jack of all trades ~ Master of none.
|
|
|
|
|
Here it is
select t2.c1,t2.c2,t1.c12 as c3,t11.c12 as c4,t111.c12 as c5
from table2 t2
inner join table1 t1 on t1.c10 = t2.c3
left join table1 as t11 on t11.c10 = t2.c4
left join table1 as t111 on t111.c10 = t2.c5
I Love T-SQL
"VB.NET is developed with C#.NET"
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi All,
I have two databases Example -A1 and A2, both are linked in SQL Server2008. I am pulling 3 tables information from A1 database and putting it into A2. But I am doing this manually by running the below queries
Example :
insert into TMP_ITEMS select * from A1..DEX.items
How to make this as a automatic process.
Thanks,
Vidya Sagar
|
|
|
|
|
How about using a trigger on the insert. As each record is inserted into one database, a similar record can be inserted into the other.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Agreed. In my opinion, this is the best approach.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I've done that with a Windows Service.
You could also use a Windows Scheduled Task.
|
|
|
|
|
|
Dear All,
I have a Point of sale system (Desktop application) , this system will be deployed on three different branches and one factory branch , we have also a dedicated server hosted online ,all places including the dedicated server having the same schema , i would like to replicate the new changes from branches and factory to dedicated server and vice versa , i tried to use merge replication but in vain , we could not set it up properly , we faced a problem with user account permissions , we got that message "Could not connect to distributor "DedicatedServer".
Could anyone please have a solid procedures to solve such a problem? or if there are some third party tools that could help us achieving that task ?
Your Response is highly appreciated !
Human knowledge belongs to the world.
|
|
|
|
|
What database system are you using? Oracle, MS SQL, Other?
I assume MS. It sounds like a permission problem. Might I suggest creating a SQL login with the desired permissions on all systems.
|
|
|
|
|
I'd have to know a few more details about your infrastructure to provide better feedback as to a course of action.
You may want to review this excellent series of concise articles on SQLServerCentral regarding SQL replication and how to choose the correct model for your needs:
http://www.sqlservercentral.com/stairway/72401/[^]
Best of luck!
|
|
|
|
|
can any one help me i am facing problem in writing query in my project.i am taking four link buttons in one page(test.aspx page) when i click on Test1 link it should show me the result on show page (show.aspx page) by retriving the data stored in database for Test1 table similarly if i click Test2 link it should show me the data on same show page(show.aspx page) retriving data from database for test2 table same for Test3 and Test4 link.database iam using here is sql server 2005.
|
|
|
|