Click here to Skip to main content
15,893,564 members
Articles / Mobile Apps

Mobile Birthday Reminder and Automatic SMS Sender

Rate me:
Please Sign up or sign in to vote.
4.91/5 (16 votes)
4 Jul 2010CPOL5 min read 80.4K   13.8K   38  
This code sends automatic SMS to birthday boys/girls :) from phone
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="BirthDayInfoDataSet" targetNamespace="http://tempuri.org/BirthDayInfoDataSet.xsd" xmlns:mstns="http://tempuri.org/BirthDayInfoDataSet.xsd" xmlns="http://tempuri.org/BirthDayInfoDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=.\BirthDayInfo.sdf;Password=Matrix;Persist Security Info=True" IsAppSettingsProperty="false" Modifier="Assembly" Name="BirthDayInfoConnectionString" ParameterPrefix="@" Provider="Microsoft.SqlServerCe.Client.3.5" />
          <Connection ConnectionStringObject="Data Source=.\BirthDayInfo.sdf;Password=Matrix;Persist Security Info=True" IsAppSettingsProperty="false" Modifier="Assembly" Name="BirthDayInfo.sdf" ParameterPrefix="@" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="BirthDayInfoTableAdapter" GeneratorDataComponentClassName="BirthDayInfoTableAdapter" Name="BirthDayInfo" UserDataComponentName="BirthDayInfoTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="BirthDayInfoConnectionString" DbObjectName="BirthDayInfo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [BirthDayInfo] WHERE (([sno] = @p1))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="sno" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [BirthDayInfo] ([fullName], [dateOfBirth], [mobileNumber], [notes]) VALUES (@p1, @p2, @p3, @p4)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="fullName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dateOfBirth" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="mobileNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="notes" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT [sno], [fullName], [dateOfBirth], [mobileNumber], [notes] FROM [BirthDayInfo]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [BirthDayInfo] SET [fullName] = @p1, [dateOfBirth] = @p2, [mobileNumber] = @p3, [notes] = @p4 WHERE (([sno] = @p5))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p1" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="fullName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@p2" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="dateOfBirth" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p3" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="mobileNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@p4" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="notes" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@p5" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="sno" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="sno" DataSetColumn="sno" />
              <Mapping SourceColumn="fullName" DataSetColumn="fullName" />
              <Mapping SourceColumn="dateOfBirth" DataSetColumn="dateOfBirth" />
              <Mapping SourceColumn="mobileNumber" DataSetColumn="mobileNumber" />
              <Mapping SourceColumn="notes" DataSetColumn="notes" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="BirthDayInfoDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="BirthDayInfoDataSet" msprop:Generator_DataSetName="BirthDayInfoDataSet" msprop:EnableTableAdapterManager="False">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="BirthDayInfo" msprop:Generator_UserTableName="BirthDayInfo" msprop:Generator_RowDeletedName="BirthDayInfoRowDeleted" msprop:Generator_RowChangedName="BirthDayInfoRowChanged" msprop:Generator_RowClassName="BirthDayInfoRow" msprop:Generator_RowChangingName="BirthDayInfoRowChanging" msprop:Generator_RowEvArgName="BirthDayInfoRowChangeEvent" msprop:Generator_RowEvHandlerName="BirthDayInfoRowChangeEventHandler" msprop:Generator_TableClassName="BirthDayInfoDataTable" msprop:Generator_TableVarName="tableBirthDayInfo" msprop:Generator_RowDeletingName="BirthDayInfoRowDeleting" msprop:Generator_TablePropName="BirthDayInfo">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="sno" msprop:Generator_UserColumnName="sno" msprop:Generator_ColumnPropNameInRow="sno" msprop:Generator_ColumnVarNameInTable="columnsno" msprop:Generator_ColumnPropNameInTable="snoColumn" type="xs:int" />
              <xs:element name="fullName" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="dateOfBirth" msprop:Generator_UserColumnName="dateOfBirth" msprop:Generator_ColumnPropNameInRow="dateOfBirth" msprop:Generator_ColumnVarNameInTable="columndateOfBirth" msprop:Generator_ColumnPropNameInTable="dateOfBirthColumn" type="xs:dateTime" />
              <xs:element name="mobileNumber" msprop:Generator_UserColumnName="mobileNumber" msprop:Generator_ColumnPropNameInRow="mobileNumber" msprop:Generator_ColumnVarNameInTable="columnmobileNumber" msprop:Generator_ColumnPropNameInTable="mobileNumberColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="13" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="notes" msprop:Generator_UserColumnName="notes" msprop:Generator_ColumnPropNameInRow="notes" msprop:Generator_ColumnVarNameInTable="columnnotes" msprop:Generator_ColumnPropNameInTable="notesColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:BirthDayInfo" />
      <xs:field xpath="mstns:sno" />
    </xs:unique>
  </xs:element>
</xs:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
United States United States
I am a developer in Microsoft Technologies like .NET, SharePoint etc.

Comments and Discussions